Symptoms
Closing a modal form in the Visual Basic 5.0 design environment may causeone of the following errors:

“Access Violation: Unhandled exception in VB5.EXE 0xC0000005: AccessViolation” (Windows NT4)
-or-

“VB has caused an invalid page fault in module VB5.EXE at 0137:00419f1e”(Windows 95, Windows 98, and Windows Me)
Resolution
Visual Basic is trying to get the thread data from a control after it hasbeen unloaded. The error code that signaled that the control got unloadedis not handled properly.