PRB: Debugger Hangs If Remote Connection Is Lost

Last reviewed: July 25, 1997
Article ID: Q123808
The information in this article applies to:
  • The integrated debugger included with - Microsoft Visual C++, 32-bit Edition, version 2.0, 2.1, 4.0 on the

         following platform:
         - x86
    

SYMPTOMS

When using the remote debugging feature of the Visual C++ Integrated Debugger to debug an application on Win32s from Windows NT, the debugger appears to hang (stops responding) if a remote connection is suddenly terminated.

CAUSE

This can occur if the computer running Win32s is turned off or if the serial cable connecting the two computers is disconnected while debugging. The debugger is waiting for information from the remote monitor on the computer running Win32s and does not time-out.

RESOLUTION

Because the debugger will not respond when it is waiting for the information, the development environment needs to be terminated.

MORE INFORMATION

The Visual C++ development environment may be terminated through the Task List, or by using PVIEW.EXE. PVIEW.EXE is a graphical Process Viewer, providing an interface through which processes (and threads) may be examined and modified. PVIEW.EXE ships with Visual C++ versions 2.0 and 4.0.

To use PVIEW to terminate the Visual C++ session:

  1. For Visual C++ version 2.0: Start PVIEW by clicking the PVIEW icon in the "Microsoft Visual C++ 2.0" group, or by running PVIEW.EXE from the <CD_drive>:\MSVC20\BIN directory.

    For Visual C++ version 4.0: Start PVIEW by clicking the PVIEW icon in the "Microsoft Visual C++ 4.0" group, or by running PVIEW.EXE from the <CD_drive>:\MSDEV\BIN\WINNT directory.

    In both cases, PVIEW may not have been installed, so you may need to run it from the distribution CD.

  2. For Visual C++ version 2.0, select MSVC from the list of processes. For Visual C++ version 4.0, select MSDEV from the list of processes.

  3. Click the Kill Process button.
Keywords          : WBDebug
Version           : 2.0 2.1 4.0
Platform          : NT WINDOWS
Issue type        : kbprb
Solution Type     : Info_Provided


================================================================================


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