Article ID: 817795 - Last Review: September 27, 2005 - Revision: 2.7 FIX: The ToolTip component may cause a memory leak when it is added to a child MDI form in Visual Studio .NETSYMPTOMSWhen you work with ToolTip components in Microsoft Visual
Studio .NET with Windows Forms in multiple-document interface (MDI) mode, your
application may experience a memory leak every time that the ToolTip components
are used on the child MDI form. You may notice this problem as an increase in
the Graphics Device Interface (GDI) Object count that Microsoft Windows Task
Manager displays as the operation repeats. To view the GDI Object count in Task Manager, follow these steps:
CAUSEThis problem occurs when you have a ToolTip component
embedded on a child MDI form, and the child MDI form is destroyed. The ToolTip
component is not garbage collected after the MDI form is
destroyed. RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft .NET Framework 1.0 or Microsoft .NET Framework 1.1. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
867461
(http://support.microsoft.com/kb/867461/
)
.
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section. WORKAROUNDFor MDI forms that have ToolTip components, add the following code to the MDI form to destroy all
ToolTip components, when the form is destroyed: REFERENCES For additional information, click the
following article number to view the article in the Microsoft Knowledge Base: 824684
(http://support.microsoft.com/kb/824684/
)
Description of the standard terminology that is used to describe Microsoft software updates
APPLIES TO
| Article Translations
|
Back to the top
