Microsoft KB Archive/94216

= FIX: GPF/UAE After Undoing Edit of Option Explicit Statement =

Article ID: 94216

Article Last Modified on 1/8/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition

-



This article was previously published under Q94216



SYMPTOMS
A General Protection (GP) fault or Unrecoverable Application Error (UAE) occurs if you attempt to undo the edit of an Option Explicit statement while in break mode.



STATUS
Microsoft has confirmed this to be a problem in Microsoft Visual Basic version 2.0 for Windows. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.



MORE INFORMATION
The following steps reproduce this problem:

 Run Visual Basic, or if Visual Basic is already running, choose New Project from the File menu (ALT, F, N). Form1 is created by default. Under the general declarations section for Form1, enter the statement &quot;Option Explicit&quot; if it is not already there. From the Run menu, choose Start (ALT, R, S) Press CTRL+BREAK to break execution. Edit the Option Explicit statement in the general declarations section of Form1 by pressing the BACKSPACE key to delete the last character from the statement. In other words, delete the t so that you end up with Option Explici. From the Edit menu, choose Undo (ALT, E, U) to undo the edit.</li> Choose the Cancel button when you see this message:

&quot;You will have to restart your program after this edit-proceed anyway?&quot;

</li> Choose the Cancel button again when you see the same message again:

&quot;You will have to restart your program after this edit-proceed anyway?&quot;

</li></ol>

At this point, you will experience a GP fault in Windows version 3.1 or a UAE in Windows version 3.0.

Additional query words: buglist2.00 fixlist3.00 1.00 GPF 2.00 3.00

Keywords: kbbug kbfix KB94216

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.