Symptoms
An application error occurs when you close a Visual Basic program throughthe control box if the Visual Basic program executes a command after anobject created from a class module is set to nothing. This problem occursonly in the 32-bit edition of Visual Basic 4.0.
Resolution
The workaround to this issue is execute all the code in the event beforesetting the object to nothing. The statement to set the object to nothingshould be the last line in the event procedure.