Article ID: 171849
Article Last Modified on 10/17/2003
170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why
#include <windows.h>
#include <map>
#pragma warning (disable : 4786 )
using namespace std;
template<typename Type>
class SomeReallyLongSymbolName
{
public:
SomeReallyLongSymbolName(Type var){m_Type = var;}
SomeReallyLongSymbolName(){}
void func(Type var){m_Type = var;}
Type m_Type;
};
SomeReallyLongSymbolName<int> intObject(0);
typedef map< DWORD, SomeReallyLongSymbolName< DWORD> >
STLTypeWithLongName ;
STLTypeWithLongName STLObjectWithLongName;
int main()
{
intObject.func(1);
return 0;
}
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.
Keywords: kbbug kbfix kbvs97sp2fix KB171849