/ Published in: C++
The Visual Studio output window will display "Detected memory leaks!" with a memory allocation number, for example, {145}. See Memory Leak Detection Enabling.
Using the debugger (without changing code) see: http://msdn.microsoft.com/en-us/library/w2fhc9a3%28VS.80%29.aspx
Using the debugger (without changing code) see: http://msdn.microsoft.com/en-us/library/w2fhc9a3%28VS.80%29.aspx
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Using the debugger (without changing code) see: http://msdn.microsoft.com/en-us/library/w2fhc9a3%28VS.80%29.aspx // Includes... #define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h> // Set this debug flag _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); // break on a particular allocation as indicated in visual studio as {145}. _crtBreakAlloc = 145;
URL: http://msdn.microsoft.com/en-us/library/w2fhc9a3%28VS.80%29.aspx