EnhancedMemoryLeakDetectionforVisualC++VisualLeakDetectorisafree,robust,open-sourcememoryleakdetectionsystemforVisualC++.It'sprettyeasytouse.Afterinstallingit,youjustneedtotellVisualC++wheretofindtheincludedheaderandlibraryfile.ThenitcanbeusedwithanyC/C++projectsimplybyaddingthefollowinglinetoyourcode:#includeWhenyourunyourprogramundertheVisualStudiodebugger,VisualLeakDetectorwilloutputamemoryleakreportattheendofyourdebuggingsession.Theleakreportincludesthefullcallstackshowinghowanyleakedmemoryblockswereallocated.Double-clickonalineinthecallstacktojumptothatfileandlineintheeditorwindow.It'saveryeffectivewaytoquicklydiagnose,andfix,memoryleaksinC/C++applications.ThemaindifferencebetweentheCRTDebugLibraryandVLD,isthatVisualLeakDetectorshowsyouthecompletecallstackusedformemoryallocationhasledtotheleak.
1