Tuesday, September 25, 2012

How to handle c/c++ memory leaks and access violation issues


Currently I'm working on my M.Sc  Research and I'm implementing my research tools using C++ ( together with  Qt, OpenCV, Boost and Intel TBB libraries). One of the biggest challenges is to overcome the run time exceptions coming due to memory leaks and access violation issues due to threads and poor memory management. Hence I though of posting my personal experience as this would be very helpful to the c/c++ programmers.


Following are the well-known tools that you can use to investigate memory leaks, uninitialized variables, and other run time issues.


and may more you can find via this link


If you are using windows and using Visual Studio then my recommendation is go for VLD ( Visual Leak Detector )

http://vld.codeplex.com/wikipage?title=Using%20Visual%20Leak%20Detector&referringTitle=Documentation

No comments:

Post a Comment