Opened 15 years ago

Closed 14 years ago

#1026 closed Bug (Fixed)

_Gdiplus_BitmapCreate* functions document wrong resource disposal function

Reported by: wraithdu Owned by: Valik
Milestone: Component: Documentation
Version: Severity: None
Keywords: gdiplus bitmap create Cc:


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
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version:

comment:2 Changed 14 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 14 years ago by Valik

  • Milestone deleted
  • Resolution Fixed deleted
  • Status changed from closed to reopened

comment:4 Changed 14 years ago by Valik

  • Milestone set to
  • Owner changed from Jpm to Valik
  • Resolution set to Fixed
  • Status changed from reopened to closed

Fixed in version:

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.

Add Comment

Modify Ticket

as closed The owner will remain Valik.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.