FIX: UserControl in VB4 or VC++ 5.0 Container Causes IPF on Exit (184332)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- 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
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q184332 SYMPTOMS
An application compiled in Visual Basic 4.0 or Visual C++ 5.0 generates an
"Invalid Page Fault in MSVBVM50.DLL" error when the application is closed.
CAUSE
This error can occur in the following situation:
- The Visual Basic 4.0 or Visual C++ 5.0 application contains a
UserControl created in Visual Basic 5.0.
- The UserControl contains a Class that creates a reference to the
UserControl.
- You are running Windows 95 or Windows 98.
RESOLUTION
To work around this problem, use the ObjPtr function in combination with
the CopyMemory API call to create the UserControl reference in the Class
Module. The steps to complete the workaround are listed in the MORE
INFORMATION section of this article.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This problem was corrected in Windows 2000.
Modification Type: | Minor | Last Reviewed: | 3/21/2005 |
---|
Keywords: | kbBug kbCRT kbCtrlCreate kbfix KB184332 |
---|
|