Modify

#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 Jpm, on Jul 4, 2009 at 8:05:22 PM

Milestone: 3.3.1.2
Owner: set to Jpm
Resolution: Fixed
Status: newclosed

Fixed in version: 3.3.1.2

comment:2 by wraithdu, on Oct 15, 2009 at 5:06:59 PM

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 Valik, on Oct 15, 2009 at 9:16:54 PM

Milestone: 3.3.1.2
Resolution: Fixed
Status: closedreopened

comment:4 by Valik, on Oct 15, 2009 at 9:30:20 PM

Milestone: 3.3.1.3
Owner: changed from Jpm to Valik
Resolution: Fixed
Status: reopenedclosed

Fixed in version: 3.3.1.3

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.