#include <crtdbg.h>#include <windows.h>int WinMain( HINSTANCE, HINSTANCE, LPSTR, int ){ _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF); char* pMemory = new char[1000]; return 0;}Behold: Detected memory leaks!Dumping objects ->{61} normal block at 0x002F3978, 1000 bytes long. Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD Object dump complete.The program '[1104] MemCheckWin.exe: Native' has exited with code 0 (0x0).
[edited by - mauman on September 3, 2003 2:57:14 PM]