The information in this article applies to:
SYMPTOMSThe debugger hangs when an STL object with very long symbol name is viewed in the Watch Window and expanded. You have to close Developer Studio Task Manager and restart. The sample program in the MORE INFORMATION section demonstrates this behavior. CAUSEThis behavior occurs because the debugger currently has a limit of 255 characters for symbols. RESOLUTIONReduce the size of the mangled symbol names. You can do this by shortening the names of classes and class members. You can also shorten class names of classes by using #define. STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Studio
97 Service Pack 2. Q170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why MORE INFORMATIONSteps to Reproduce BehaviorBuild the following sample code as a Console application:
After the build is complete, start the debugger by pressing the F10 key. In
the Watch Window, enter the two variable names, intObject and
STLObjectWithLongName. You will be able to expand the intObject variable.
However, when you try to expand the STLObjectWithLongName variable, the
Debugger will hang.
Additional query words:
Keywords : kbVS97sp2fix |
Last Reviewed: July 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |