FIX: Visual C++ Debugger Crashes on Very Long SymbolsLast reviewed: September 19, 1997Article ID: Q164949 |
The information in this article applies to:
SYMPTOMSWhen you place the caret on a line that contains a very long symbol name while you are debugging an application using Visual C++ in disassembly view, the debugger may crash. A possible error message is:
“MSDEV caused an invalid page fault in module <unknown> at 00de:676e6972” CAUSEThis behavior occurs because the debugger currently has a limit of 255 characters for symbols.
RESOLUTION
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ version 5.0. The limit is now (256+128).
REFERENCES
Sample Code
/* Compile options needed: /GX
*/
#pragma warning(disable:4786)
#include <string>
#include <map>
struct ThreeString
{
string s1,s2,s3;
ThreeString(string i1,string i2,string i3) {
s1 = i1;
s2 = i2;
s3 = i3;
}
ThreeString() {}
};
typedef map<string, ThreeString, less<string>,
allocator<ThreeString> > MapType;
void main()
{
MapType themap;
themap["Zero"] = ThreeString("Zero","Zero","Zero");
themap["One"] = ThreeString("One","One","One");
}
Keywords : vcfixlist500 WBDebug Version : 4.2 Platform : NT WINDOWS Issue type : kbbug Solution Type : kbfix |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |