Article ID: 257630
Article Last Modified on 8/7/2007
APPLIES TO
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
This article was previously published under Q257630
SYMPTOMS
A Visual Basic application that has a CoolBar control crashes while exiting the application. This occurs when there is an End statement in the unload event of the form that hosts a CoolBar control. This behavior occurs only when running the executable and does not happen in the Visual Basic integrated development environment (IDE). The error message is similar to the following:
In the Windows 9x platform:
Clicking on the Details button may reveal text similar to the following:
In Windows NT or Windows 2000 platform, the following error message appears:
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Service Pack 4 for Visual Studio 6.0.
For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:
194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed
To download the latest Visual Studio service pack, visit the following Microsoft Web site:
MORE INFORMATION
Steps to Reproduce Behavior
- Create a new Standard EXE project. Form1 is created by default.
- On the Project menu, select Components, choose the Microsoft Windows Common Controls-3 6.0, and then click OK.
- Add a CoolBar control to Form1.
Paste the following code into the code window of Form1:
Private Sub Form_Unload(Cancel As Integer) End End Sub
- Run the project in the Visual Basic IDE. Exit the form by clicking the X button, and note that no problem arises.
- Compile the project and run the EXE outside the Visual Basic IDE. Click the X button to exit the application, and note the Application error.
Additional query words: sp4 GPF IPF
Keywords: kbbug kbctrl kbfix kbrebarctrl kbvs600sp4fix kbvs600sp5fix KB257630