Need help with memory leaks
Hi everybody. For my program, I use the library, similar to GDAL. When the quick search is generatinga in the program (specific area), there are memory leaks. Used Visual Leak Detector, but the program freezes and verification has not been fully performed. This detector advises developer of GDAL. There may be more effective debuggers?
Thanks!
Re: Need help with memory leaks
Quote:
Originally Posted by
Jokeman
Hi everybody. For my program, I use the library, similar to GDAL. When the quick search is generatinga in the program (specific area), there are memory leaks. Used Visual Leak Detector, but the program freezes and verification has not been fully performed. This detector advises developer of GDAL. There may be more effective debuggers?
Thanks!
I advise Deleaker but you can use any GDI leaks debugger :cool:
Re: Need help with memory leaks
mmmm... Thank you? but problem is actual :(
Re: Need help with memory leaks
Memory leaks are actual always :eek: (headache)
Re: Need help with memory leaks
VLD, Valgrind, Purify, Memcheck..... Profit!
Re: Need help with memory leaks
Quote:
Originally Posted by
Big Pig
VLD, Valgrind, Purify, Memcheck..... Profit!
oMG You really expert - debugger ::eek:
Re: Need help with memory leaks
Re: Need help with memory leaks
Quote:
Originally Posted by
MastAvalons
oMG You really expert - debugger ::eek:
I have spent a lot of time on debugging and catching memory leaks. If do it for a long time, it is can helps to make good money on this.
Re: Need help with memory leaks
Re: Need help with memory leaks
Thanks, guys! And what programs for liquidation memory leaks did you use personally?:confused:
Re: Need help with memory leaks
Quote:
Originally Posted by
Jokeman
Thanks, guys! And what programs for liquidation memory leaks did you use personally?:confused:
Personally, the only one i have used is valgrind. I can recommend it, but I guess its not relevant for you since you appear to be using Windows.
Re: Need help with memory leaks
Hi, Atheist! yes, I'm using windows now. I have such question because I always use Linux and use valgrind for a long time. But now there were circumstances that I have to work with windows.
Re: Need help with memory leaks
It is difficult to argue. Valgrind is essential for Linux.
Re: Need help with memory leaks
Thank you very much for your help! I think I found what I was looking for)):wave:
Re: Need help with memory leaks
"Effective C++" by Scott Meyers - read it!
One more thing: you can find good guides how to fix the leak by yourself.
Re: Need help with memory leaks
Thank you! I heard about this book. But I have not had the opportunity to read it.
Re: Need help with memory leaks
What is a Memory Leak?
A memory leak, occurs when a computer program consumes memory but is unable to release it back to the operating system. In C/C++ whenever a program allocates dynamic memory on the heap it should also release the same or it results in memory leak.
In C dynamic memory is allocated on Heap using the function malloc, the same memory is reclaimed by explicitly calling the function free.
In C++ dynamic memory is allocated on Heap using the operator new or new[], the same is reclaimed through delete or delete[].
Resources to know more about memory Leaks?
You can find many online tutorials and books to know more about the various common scenarios in which memory leaks are encountered.
+ http://www.yolinux.com/TUTORIALS/C++...moryLeaks.html ---- books
Re: Need help with memory leaks
Thank you all! I found what I was looking for. And even more!