Opened 15 years ago
Closed 15 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 Changed 15 years ago by Jpm
- Milestone set to 3.3.1.2
- Owner set to Jpm
- Resolution set to Fixed
- Status changed from new to closed
comment:2 Changed 15 years ago by wraithdu
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 Changed 15 years ago by Valik
- Milestone 3.3.1.2 deleted
- Resolution Fixed deleted
- Status changed from closed to reopened
comment:4 Changed 15 years ago by Valik
- Milestone set to 3.3.1.3
- Owner changed from Jpm to Valik
- Resolution set to Fixed
- Status changed from reopened to closed
Fixed in version: 3.3.1.3
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Fixed in version: 3.3.1.2