FIX: Developer Studio May Hang When Debug Session Starts/EndsLast reviewed: December 4, 1997Article ID: Q149616 |
4.00
WINDOWS NT
kbusage kbbuglist kbfixlist
The information in this article applies to:
SYMPTOMSWhen starting or ending a debugging session, Developer Studio hangs (doesn't respond to user input).
CAUSEThe problem occurs because there is a large amount of text to display in the Output window, and Developer Studio is in a state where it is unable to display it. Here are two scenarios where this problem will occur:
RESOLUTIONFor the first scenario, you could use the /BASE linker option when building the DLLs with which the application implicitly links. The /BASE option allows you to set a preferred base address for a .dll or .exe file. If you set a different base address for each DLL, the operating system will not need to relocate them when loading them, and Developer Studio will not need to send a message to indicate this. Using the /BASE option avoids the problem and allows the application to load more efficiently regardless of whether it is being debugged or not. For more information about the /BASE option, please refer to the online documentation. For second scenario, if the application being debugged is using MFC, you can temporarily turn off tracing output using the MFC Tracer application, If the application does not use MFC and the debug messages are coming from the CRT library, then you could use the _CrtSetReportMode and _CrtSetReportFile functions in the application. These functions could be used to redirect the messages to a file instead of the Developer Studio Output window. For more information on the CRT debug functions, please refer to the online documentation.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been corrected in version 4.0.
MORE INFORMATIONEven though this bug has been fixed in version 4.1, there may be a noticeable delay when you start a debugging session when the application implicitly links to a large number of DLLs.
|
Additional reference words: 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |