FIX: Error When Closing a Program Through the Control Box (143046)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q143046 SYMPTOMS
An application error occurs when you close a Visual Basic program through
the control box if the Visual Basic program executes a command after an
object created from a class module is set to nothing. This problem occurs
only in the 32-bit edition of Visual Basic 4.0.
RESOLUTION
The workaround to this issue is execute all the code in the event before
setting the object to nothing. The statement to set the object to nothing
should be the last line in the event procedure.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic
5.0.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbBug kbfix KB143046 |
---|
|