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

Last reviewed: October 30, 1997
Article ID: Q94216
2.00 WINDOWS kbenv kbbuglist

The information in this article applies to:

- Microsoft Visual Basic programming system for Windows, version 2.0

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:

  1. 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.
2. Under the general declarations section for Form1, enter the statement
   "Option Explicit" if it is not already there.
3. From the Run menu, choose Start (ALT, R, S) 4. Press CTRL+BREAK to break execution. 5. 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.
6. From the Edit menu, choose Undo (ALT, E, U) to undo the edit. 7. Choose the Cancel button when you see this message: "You will have to
   restart your program after this edit-proceed anyway?"
8. Choose the Cancel button again when you see the same message again: "You
   will have to restart your program after this edit-proceed anyway?"

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


Additional reference words: buglist2.00 fixlist3.00 1.00 GPF 2.00 3.00
KBCategory: kbenv kbbuglist
KBSubcategory: EnvtDes
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: October 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.