Opened 17 years ago
Closed 16 years ago
#1026 closed Bug (Fixed)
_Gdiplus_BitmapCreate* functions document wrong resource disposal function
| Reported by: | wraithdu | Owned by: | Valik |
|---|---|---|---|
| Milestone: | 3.3.1.3 | Component: | Documentation |
| Version: | 3.3.1.1 | Severity: | None |
| Keywords: | gdiplus bitmap create | Cc: |
Description
With the exception of _GDIPlus_BitmapCreateHBITMAPFromBitmap(), all the _Gdiplus_BitmapCreate* functions document that _WinAPI_DeleteObject() should be used to free the resource. Judging from the help examples and testing, the correct function would either be _Gdiplus_BitmapDispose() or _Gdiplus_ImageDispose(). _WinAPI_DeleteObject returns failure (false) in testing.
Attachments (0)
Change History (4)
comment:1 by , 17 years ago
| Milestone: | → 3.3.1.2 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
comment:2 by , 16 years ago
I think maybe you misunderstood my original post. The correct resource disposal function for all _GDIPlus_BitmapCreate* functions is _GDIPlus_BitmapDispose(), with the exception of _GDIPlus_BitmapCreateHBITMAPFromBitmap(). That is the only function which should use _WinAPI_DeleteObject(). Using _WinAPI_DeleteObject() on the other functions will return failure.
comment:3 by , 16 years ago
| Milestone: | 3.3.1.2 |
|---|---|
| Resolution: | Fixed |
| Status: | closed → reopened |
comment:4 by , 16 years ago
| Milestone: | → 3.3.1.3 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed in version: 3.3.1.3

Fixed in version: 3.3.1.2