BUG: Closing MS-DOS Session While Debugging Causes GPF

ID: Q116464

1.00 1.50 WINDOWS kbtool kbbuglist

The information in this article applies to:

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

Last Reviewed: July 23, 1997