Modify

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 J-Paul Mesnage, 17 years ago

Milestone: 3.3.1.2
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.3.1.2

comment:2 by wraithdu, 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 Valik, 16 years ago

Milestone: 3.3.1.2
Resolution: Fixed
Status: closedreopened

comment:4 by Valik, 16 years ago

Milestone: 3.3.1.3
Owner: changed from J-Paul Mesnage 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.