// test.cpp #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); int* a = new int; return 0; }
// 出力ウィンドウ Detected memory leaks! Dumping objects -> test1.cpp(8) : {101} normal block at 0x0000000000488320, 4 bytes long. Data: < > CD CD CD CD Object dump complete.