FIX: Multiple VB4 16-bit Apps Under Win95 GPF on Closing (152483)



The information in this article applies to:

  • Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
  • Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0

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.

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kb16bitonly kbbug kbDSupport kbOSWin98fix KB152483