FIX: Invalid Page Fault When Shutting Down Visual Basic 5.0Last reviewed: December 18, 1997Article ID: Q167213 |
The information in this article applies to:
SYMPTOMSWhen you exit Visual Basic 5.0, an Invalid Page Fault may occur.
CAUSEThis crash is caused by a problem in the way Visual Basic 5.0 destroys command bars during shut down.
RESOLUTIONThere 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:
[Add-Ins32] TabOrder.Connect=0 DataFormDesigner.DFDClass=0 VBSDIAddIn.Connect=0 DataToolsAddIn.Connect=0 AppWizard.Wizard=0 WizMan.Connect=0 ClassBuilder.Wizard=1 AddInToolbar.Connect=1 ControlWiz.Wizard=1 DataFormWizard.Wizard=0 ActiveXDocumentWizard.Wizard=0 PropertyPageWizard.Wizard=1 APIDeclarationLoader.Connect=0 VisualCompMgr.Connect=0 RVBAddInMenus.Connector=1 RVBAddIn.Connector=0Through trial and error, you may find that the problem goes away when the VBADDIN.INI is arranged as follows:
[Add-Ins32] RVBAddInMenus.Connector=1 AddInToolbar.Connect=1 TabOrder.Connect=0 DataFormDesigner.DFDClass=0 VBSDIAddIn.Connect=0 DataToolsAddIn.Connect=0 AppWizard.Wizard=0 WizMan.Connect=0 ClassBuilder.Wizard=1 ControlWiz.Wizard=1 DataFormWizard.Wizard=0 ActiveXDocumentWizard.Wizard=0 PropertyPageWizard.Wizard=1 APIDeclarationLoader.Connect=0 VisualCompMgr.Connect=0 RVBAddIn.Connector=0Unfortunately, this workaround doesn't always work. When you are testing out your changes to the VBADDIN.INI, make sure you use the following procedure. In order for your changes to take effect, you must start Visual Basic after saving your changes to the VBADDIN.INI:
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:
STATUSMicrosoft 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:
ARTICLE-ID: Q170365 TITLE : INFO: Visual Studio 97 Service Packs - What, Where, and WhyFor 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:
ARTICLE-ID: Q171554 TITLE : INFO: Visual Basic 5.0 Fixes in Visual Studio 97 Service Pack 2 MORE INFORMATIONThis 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
Keywords : vb5all VBKBDesignTime VBKBEnv VBKBVB VS97FixlistSP3 kbenv kbtool VS97FixlistSP2 VB5FixlistSP2 Version : 5.00 Platform : WINDOWS Issue type : kbbug Solution Type : kbfix kbservicepack |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |