Microsoft KB Archive/152483

= FIX: Multiple VB4 16-bit Apps Under Win95 GPF on Closing =

Article ID: 152483

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition

-



This article was previously published under Q152483



SYMPTOMS
When you run multiple Visual Basic 4.0 16-bit applications at the same time, each using the same controls, a General Protection Fault may occur when the last instance of the application is closed. This problem only occurs under Windows 95.



RESOLUTION
To resolve this problem, download and install OLEUPD.EXE from the Microsoft Download Center.

For additional information about this problem and its resolution, please see the following article in the Microsoft Knowledge Base. It can be found in the Windows 95 product Knowledge Base:

139432 OLE Update for Windows 95



STATUS
This problem has been fixed in Microsoft Windows 98.



MORE INFORMATION
The following Visual Basic 4.0 OCX controls are known to be affected by this problem:

COMDLG16.OCX

DBLIST16.OCX

GRID16.OCX

TABCTL16.OCX

Steps to Reproduce Problem
WARNING: You will need to reboot after reproducing the problem.


 * 1) Start the 16-bit Edition of Visual Basic version 4.0 for Windows. Form1 is created by default.
 * 2) Open the Loan Sample application found in the Samples\Grid directory.
 * 3) Create an executable for the sample application, LOAN.EXE.
 * 4) Start an instance of LOAN.EXE, placing it in the upper-left corner of the screen.
 * 5) Start a second instance of LOAN.EXE.
 * 6) Click the X button to close the first instance of LOAN.EXE in the upper- left corner of the screen.
 * 7) Click the X button to close the second instance of LOAN.EXE.
 * 8) An error dialog will be generated containing the following message and you will probably need to reboot to continue:

"This program has performed an illegal operation and will be shut down"

The address information in the dialog varies, since the control could be anywhere in memory. The error dialog will often have garbage characters in the title bar.

Keywords: kbbug kbfix kboswin98fix kb16bitonly KB152483

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.