FIX: GPF Occurs When Starting Visual Basic 5.0

Last reviewed: December 18, 1997
Article ID: Q167346
The information in this article applies to:
  • Microsoft Visual Basic Control Creation, Learning, Professional, and Enterprise Editions for Windows, version 5.0

SYMPTOMS

When Visual Basic starts and the IDE is displayed, a GPF (General Protection Fault) occurs and Visual Basic does not load.

CAUSE

This problem may be caused by faulty Visual Basic 4.0 add-ins or invalid command bar configuration information in the system registry.

RESOLUTION

To prevent add-ins from being loaded when Visual Basic starts:

  1. Start Notepad.exe.

  2. Edit the VBAddin.INI file in your Windows directory and set all of the entries to zero (0). For example:

        - Original:   AppWizard.Wizard=1
        - Modified:   AppWizard.Wizard=0
    
    

  3. Save VBAddin.INI.

  4. Restart Visual Basic.

To deduce which add-in is causing the problem:

  1. Click on Add-In Manager.

  2. Check a single Add-In and click the OK button.

  3. Restart Visual Basic.

  4. Repeat this process until Visual Basic produces a GPF.

  5. The last Add-In checked before Visual Basic produces the GPF is the faulty Add-In. You should remove the Add-In from your system and follow the instructions in step 1 above to remove the entry from the VBAddin.INI file.

To fix invalid command bar references in the registry:

  1. Start Regedit.exe.

  2. Delete the following key:

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Visual Basic\5.0

  3. Close Regedit.

  4. Restart Visual Basic.

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:

   ARTICLE-ID: Q170365
   TITLE     : 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:

   ARTICLE-ID: Q171554
   TITLE     : INFO: Visual Basic 5.0 Fixes in Visual Studio 97
               Service Pack 2
Keywords          : vb5all VBKBAddIn VBKBSetup VBKBVB VS97FixlistSP3 kbsetup kbtool kbui VS97FixlistSP2 VB5FixlistSP2
Version           : 5.0
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbfix kbservicepack


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.