Article ID: 167213 - Last Review: December 10, 2003 - Revision: 2.0 FIX: Invalid Page Fault When Shutting Down Visual Basic 5.0This article was previously published under Q167213 On This PageSYMPTOMS
When you exit Visual Basic 5.0, an Invalid Page Fault may occur.
CAUSE
This crash is caused by a problem in the way Visual Basic 5.0 destroys
command bars during shut down.
RESOLUTION
There are several workarounds for this problem. However, they may not work
in all cases.
Re-order the Entries in the VBADDIN.INIThis is a trial-and-error process where you open up the VBADDIN.INI in a text editor such as notepad.exe and change the order of the lines. This causes Visual Basic to load and shut down the add-ins in a different order and may bypass the problem. However, if you add or remove an add-in at any later time, the problem could resurface. The VBADDIN.INI file is located in your Windows directory.For instance, you may have a VBADDIN.INI that looks something like this:
Move Add-In Command Bars to the Main ToolbarDrag all Add-In toolbar buttons to the Standard toolbar using the toolbar customize feature of the Visual Basic development environment. This gets rid of some command bars and may by-pass the problem:
Disable Add-Ins Before Exiting Visual Basic 5.0It may be possible to work around the problem by shutting down all the active add-ins manually prior to exiting Visual Basic 5.0. To shut down an add-in, use the following procedure:
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Studio
97 Service Pack 2.
For more information on the Visual Studio 97 Service Pack 2, please see the following article in the Microsoft Knowledge Base: 170365 (http://support.microsoft.com/kb/170365/EN-US/ ) INFO: Visual Studio 97 Service Packs - What, Where, and Why For a list of the Visual Basic 5.0 bugs that were fixed in the Visual Studio 97 Service Pack 2, please see the following article in the Microsoft Knowledge Base: 171554 (http://support.microsoft.com/kb/171554/EN-US/ ) INFO: Visual Basic 5.0 Fixes in Visual Studio 97 Service Pack 2 MORE INFORMATION
This problem can occur with many combinations of add-ins. A few of the
common scenarios and the steps to reproduce the problem are listed below.
Source Code Control Add-In and Visual Basic Add-In Toolbar
Visual Modeler Menus Add-In and Visual Basic Add-In Toolbar
Visual Modeler Menus Add-In and Source Code Control Add-In
APPLIES TO
| Article Translations
|

Back to the top
