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 , 16 years ago
| Severity: | None → Blocking |
|---|
comment:2 by , 16 years ago
| Milestone: | → 3.3.1.6 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixed by revision [5402] in version: 3.3.1.6