FIX: GP Fault in Visual C++ When Separators in Top Level Menu

Last reviewed: September 18, 1997
Article ID: Q129094
2.00 2.10 WINDOWS NT kbui kbenv kbbuglist kbfixlist

The information in this article applies to:

  • The development environment included with: Microsoft Visual C++, 32-bit Edition, versions 2.0, 2.1
  • Windows 95 M8 Beta Version 4.0

NOTE: This problem exists only when running the above versions of Microsoft Visual C++, 32-bit Edition, under Windows 95 M8 Beta.

SYMPTOMS

The Visual C++ version 2.0 and 2.1 menu editor causes a general protection (GP) fault in the M8 beta of Windows 95 when adding a separator to a top level menu or opening a menu resource with a separator in the top level menu.

RESOLUTION

If it is necessary to edit a resource that contains a top-level menu separator, you must open the <project>.rc file in a text editor and remove the top-level menu separators. Then you can use the Resource Editor to edit a menu resource.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been corrected in Visual C++ version 2.2.

MORE INFORMATION

This bug is best observed in the following two scenarios.

Scenario One - Steps to Reproduce Problem

  1. Generate an AppWizard application and select 'Both container and server' in the step 3 property page.

  2. Open the <project>.rc file.

  3. Open the menu folder.

  4. Open the menu with the ID IDR_<project>TYPE_CNTR_IP.

A GP fault will now occur in Visual C++. Choose <Close> because <Ignore> will cause Windows 95 to hang.

Scenario Two - Steps to Reproduce Problem

  1. Repeat steps 1 through 3 from Scenario One.

  2. Open any menu.

  3. Open the properties box for the empty menu item, and add a separator by clearing the Popup checkbox and checking Separator.

A GP fault will now occur in Visual C++. Choose <Close> because <Ignore> will cause Windows 95 to hang.


Additional reference words: 2.00 2.10 4.00 crash chicago ole GPF
KBCategory: kbui kbenv kbbuglist kbfixlist
KBSubcategory: VwbIss
Keywords : VwbIss kbbuglist kbenv kbfixlist kbui
Version : 2.00 2.10
Platform : NT WINDOWS
Solution Type : kbfix


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: September 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.