After adding the instructions mentioned above, you can dump the memory leaks of information including the following statement in your program :
Code:
_CrtDumpMemoryLeaks ();
When you run your program beneath the debugger, _CrtDumpMemoryLeaks print information about memory leaks in the Output window. This information looks reminiscent of this :
Code:
Detected memory leaks!
Dumping objects ->
C: \ PROGRAM FILES \ VISUAL STUDIO \ MyProjects \ Leaktest \ leaktest.cpp (20): (18)
normal block at 0x00780E80, 64 bytes long.
Data: <> CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
Object dump complete.
Bookmarks