[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | Microsoft Windows |
|
Moderator: | EEMELI::BACKSTROM |
|
Created: | Thu Apr 24 1986 |
Last Modified: | Thu May 29 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 4731 |
Total number of notes: | 24015 |
Our 16 bit Windows application handles dialog boxes on Windows 3.11.
We have a problem with lost GDI resources:
A dialog box is created with CreateDialogIndirectParam(). It has some 50
edit controls each attaching a font with CreateFontIndirect(). When the
dialog box has terminated, 2% of GDI resources are lost according to
Heapwalk. The fonts are released with DeleteObject() and the dialog box
is terminated with DestroyWindow().
If we run the same dialog box a second time, no further GDI resources are
lost.
According to Heapwalk ALL allocated GDI handles are released.
The problem becomes urgent, since we use many different dialog boxes, that
will each eat about 2% GDI resources, when run the first time.
Thanks for your comments,
Tore
[Posted by WWW Notes gateway]
T.R | Title | User | Personal Name | Date | Lines
|
---|