BUG: Closing MS-DOS Session While Debugging Causes GPF

Last reviewed: July 22, 1997
Article ID: Q116464
1.00 1.50 WINDOWS kbtool kbbuglist

The information in this article applies to:

  • The Visual Workbench Integrated Debugger included with: Microsoft Visual C++ for Windows, versions 1.0 and 1.5

SYMPTOMS

The Visual Workbench and CodeView for Windows may cause a general protection fault (GPF) if an open MS-DOS box is closed while the program being debugged is running.

STATUS

Microsoft has confirmed this to be a bug in the products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

This problem does not occur with the Visual Workbench 32-bit Edition, version 1.1.

MORE INFORMATION

The error does not occur when Visual C++ version 1.5 is run under Windows NT and CodeView is not run under Windows NT. To reproduce the error under 16-bit Windows, do the following:

With the Visual Workbench Debugger

The GPF occurs in a restricted set of conditions. Use the following steps to reproduce the error:

  1. Start an MS-DOS session under Windows.

  2. Select Go from the Debug menu or press F5 to run the application. The program being debugged should keep running; in other words, the debugger should not break at any location.

  3. Exit the MS-DOS session. When you return to Windows, a system error is generated and GPFs are generated in KRNL386.EXE by both MSVC.EXE and WINOLDAP.MOD.

With CodeView for Windows

The steps to reproduce the error under CodeView for Windows are as follows:

  1. Start an MS-DOS session.

  2. Load any .EXE file under CodeView.

  3. Select Go from the Run menu or press F5.

  4. Exit the MS-DOS session.

  5. Close the program being debugged.

  6. Select Restart from the Run menu. At this time, Windows generates a system error and terminates CodeView for Windows.


Additional reference words: 1.00 1.50
KBCategory: kbtool kbbuglist
KBSubcategory: WBDebug
Keywords : kb16bitonly


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