Modify

Opened 16 years ago

Closed 16 years ago

#1277 closed Bug (Fixed)

_GDIPlus_ImageGetGraphicsContext needs to be "disposed" in help example

Reported by: Andrew Owned by: Jon
Milestone: 3.3.1.6 Component: Documentation
Version: 3.3.0.0 Severity: Blocking
Keywords: _GDIPlus_ImageGetGraphicsContext Cc:

Description

The help file gives an example of how to use this function.

At the end of the example, the object is NOT DISPOSED. For a novice (like myself) it is not obvious that this object needs to be disposed (otherwise massive memory leak). It seems all the other "create" functions have a matching "dispose" function but not this one.

Through trail-and-error I found the required line was...

_GDIPlus_GraphicsDispose($hGraphics)

Attachments (0)

Change History (2)

comment:1 by Valik, 16 years ago

Severity: NoneBlocking

comment:2 by Jon, 16 years ago

Milestone: 3.3.1.6
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed by revision [5402] in version: 3.3.1.6

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


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