A memory leak may occur when a Windows Forms-based application uses the MonthCalendar control, the DateTimePicker control, and the NumericUpDown control in a .NET Framework 1.1 application (893142)
The information in this article applies to:
- Microsoft .NET Framework 1.1
SYMPTOMSA memory leak may occur when a Microsoft Windows Forms-based application uses the following controls: - MonthCalendar
- DateTimePicker
- NumericUpDown
This problem occurs in the Microsoft .NET Framework 1.1. CAUSEThis problem occurs because the MonthCalendar control, the DateTimePicker control, and the NumericUpDown control listen for system events. Therefore, these controls must be explicitly disposed before their parent forms are disposed. If you do not explicitly dispose these controls, a memory leak may occur.RESOLUTIONTo resolve this problem, you must explicitly dispose these controls by using the Dispose method. For example, to explicitly dispose
the MonthCalendar control, you can use the MonthCalendar. Dispose method.STATUS Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Major | Last Reviewed: | 4/27/2005 |
---|
Keywords: | kbMemory kbProgramming kbControl kbWindowsForms kbtshoot kbprb kbbug KB893142 kbAudDeveloper kbAudITPRO |
---|
|