Knowledge Base |

# FIX: GP Fault When Opening Menu Design Window in VB.EXE

Article ID: 101381

Article Last Modified on 10/28/2003

APPLIES TO

- Microsoft Visual Basic 3.0 Professional Edition
- Microsoft Visual Basic 3.0 Professional Edition

This article was previously published under Q101381

## SYMPTOMS

At times, you may receive a general protection (GP) fault when opening the Menu Design window in Visual Basic for Windows. This can result in the loss of all current additions and changes you made to your project since you last saved it.

## CAUSE

This is caused by a bug in the VB.EXE environment where a pointer is referenced after being invalidated. In this case, it happens when you assign text to a Tag property for one of the menu items already on the form and you do not save your form immediately prior to opening the Menu Design Window.

## WORKAROUND

To avoid this occasional GP fault, either do not set the Tag property of a menu item at design time or always save your work before opening the Menu Design Window.

## 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 Basic version 4.0.

Additional query words: buglist3.00 3.00 fixlist4.00

Keywords: kbbug kbfix kbenv KB101381