Answered by:
help with memory leak

Question
-
Hello.
I saw that there are tools to help you troubleshoot memory leaks.
You have used them?
what do you recommend(free or commercial)?
Thank you.Monday, September 6, 2010 2:02 PM
Answers
-
Hello.
I saw that there are tools to help you troubleshoot memory leaks.
You have used them?
what do you recommend(free or commercial)?
Thank you.In addition to what others wrote, I might suggest that very powerful "tools" against memory leaks (and resource leaks in general) in C++ are properly designed RAII classes, like smart pointers (e.g. shared_ptr, scoped_ptr, etc.) or containers like std::vector (instead of raw new[]).
Giovanni
- Marked as answer by Yi Feng Li Monday, September 13, 2010 2:22 AM
Wednesday, September 8, 2010 2:28 PM -
Hi giuseppe500,
The Visual Studio debugger and C Run-Time (CRT) libraries provide you with the means for detecting and identifying memory leaks. For more information, please check Finding Memory Leaks Using the CRT Library.
For your future concern about debugger, I recommend you visit Visual Studio Debugger forum.
Cheers,
Yi
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Marked as answer by Yi Feng Li Monday, September 13, 2010 2:22 AM
Wednesday, September 8, 2010 3:15 AM -
"Visual leak detector" is a free tool that works simple and very good.
The only thing you need to do is put the lib somewhere in the libpaths of VC (or add one), and #include<vld.h> in your main module.Kind regards
Rob
www.robtso.nl- Marked as answer by Yi Feng Li Monday, September 13, 2010 2:22 AM
Wednesday, September 8, 2010 1:23 PM -
BoundsChecker was a good tool for this. Nu-Mega is long gone, but BoundsChecker is not...
http://www.microfocus.com/products/micro-focus-developer/devpartner/index.aspx
- Marked as answer by Yi Feng Li Monday, September 13, 2010 2:22 AM
Wednesday, September 8, 2010 2:16 PM
All replies
-
Hi giuseppe500,
The Visual Studio debugger and C Run-Time (CRT) libraries provide you with the means for detecting and identifying memory leaks. For more information, please check Finding Memory Leaks Using the CRT Library.
For your future concern about debugger, I recommend you visit Visual Studio Debugger forum.
Cheers,
Yi
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Marked as answer by Yi Feng Li Monday, September 13, 2010 2:22 AM
Wednesday, September 8, 2010 3:15 AM -
"Visual leak detector" is a free tool that works simple and very good.
The only thing you need to do is put the lib somewhere in the libpaths of VC (or add one), and #include<vld.h> in your main module.Kind regards
Rob
www.robtso.nl- Marked as answer by Yi Feng Li Monday, September 13, 2010 2:22 AM
Wednesday, September 8, 2010 1:23 PM -
BoundsChecker was a good tool for this. Nu-Mega is long gone, but BoundsChecker is not...
http://www.microfocus.com/products/micro-focus-developer/devpartner/index.aspx
- Marked as answer by Yi Feng Li Monday, September 13, 2010 2:22 AM
Wednesday, September 8, 2010 2:16 PM -
Hello.
I saw that there are tools to help you troubleshoot memory leaks.
You have used them?
what do you recommend(free or commercial)?
Thank you.In addition to what others wrote, I might suggest that very powerful "tools" against memory leaks (and resource leaks in general) in C++ are properly designed RAII classes, like smart pointers (e.g. shared_ptr, scoped_ptr, etc.) or containers like std::vector (instead of raw new[]).
Giovanni
- Marked as answer by Yi Feng Li Monday, September 13, 2010 2:22 AM
Wednesday, September 8, 2010 2:28 PM -
you can as well use Rational Purifier tool
- Proposed as answer by AdityaReddyM Thursday, September 9, 2010 10:28 AM
Thursday, September 9, 2010 10:27 AM