FIX: GDI Resource Leak Using Checkboxes in Treeview Control (228859)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q228859 SYMPTOMS
When a form containing a Treeview control(s) that uses checkboxes is loaded and unloaded, a memory and GDI resource leak occurs.
CAUSE
The GDI resources used by the checkboxes on the controls are not freed when the form is unloaded.
RESOLUTION
Only load each form once and keep the form loaded. Hide the form when it is not in use and show the form when it is needed.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3 and Visual Basic 6.0 Service Pack 4.
For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbBug kbCmnCtrls kbCtrl kbfix kbTreeView kbVBp600fix kbVS600sp3fix KB228859 |
---|
|