Article ID: 140670
Article Last Modified on 10/17/2003
/* Compile options needed: /D_DEBUG
*/
#include <typeinfo.h>
#include <iostream.h>
#include <crtdbg.h>
struct test {};
void main()
{
test t;
typeid(t).name();
_CrtDumpMemoryLeaks();
}
You would see messages similar to the following in the debug tab of the
output window:
NOTE: If you are using the 'name' member function within an MFC
application, the leaks will be reported even if you do not explicitly call
_CrtDumpMemoryLeaks. MFC calls this function automatically when the
application terminates.
Additional query words: kbVC400bug 4.00 4.10 vcfixlist420
Keywords: kbbug kbfix kbcrt KB140670