65.9K
CodeProject is changing. Read more.
Home

Fast and easy memory leak detection

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.67/5 (3 votes)

Jan 26, 2012

CPOL
viewsIcon

16392

For Visual Studio IDE we can detect leaks by using CRT debugger functions#define _CRTDBG_MAP_ALLOC#include #include void main(){ // ...... // ...... _CrtDumpMemoryLeaks();}This will dump leaks if any to the Output window. Check this link :...

For Visual Studio IDE we can detect leaks by using CRT debugger functions
#define _CRTDBG_MAP_ALLOC
#include 
#include 

void main()
{
   // ...... 
  // ......

  _CrtDumpMemoryLeaks();
}
This will dump leaks if any to the Output window. Check this link : http://msdn.microsoft.com/en-us/library/e5ewb1h3(v=vs.80).aspx[^] Any way this seems to a nice tool. I will try it for sure. My 5