Quantcast
Channel: Memory leak in c++ - Stack Overflow
Browsing all 7 articles
Browse latest View live

Answer by Patrick Costello for Memory leak in c++

Your best solution is probably to use valgrind, which is one of the better tools.If you are running in OS X with Xcode, you can use the Leaks tool. If you click Run with performance tool and select...

View Article



Answer by Sasha Goldshtein for Memory leak in c++

I can also recommend UMDH: http://support.microsoft.com/kb/268343

View Article

Answer by Delan Azabani for Memory leak in c++

valgrind is a very powerful tool that you can use to detect memory leaks. Once installed, you can runvalgrind --leak-check=full path/to/program arguments...and valgrind will run the program, finding...

View Article

Answer by Umesh K for Memory leak in c++

One way is to insert file name and line number strings (via pointer) of the module allocating memory into the allocated block of data. The file and line number is handled by using the C++ standard...

View Article

Answer by Erik for Memory leak in c++

Use e.g. boost:shared_ptr instead of naked pointers.Analyze your application with one of these: http://en.wikipedia.org/wiki/Memory_debugger

View Article


Answer by eckes for Memory leak in c++

Tools that might help you:Linux: valgrindWin32: MemoryValidatorYou have to check every bit of memory that gets allocated (new, malloc, ...) if it get's freed using the appropriate function (delete,...

View Article

Memory leak in c++

How to detect memory leak. I mean is there any tool/utility available or any piece of code (i.e. overloading of operator new and delete) or just i need to check the new and delete in the code??If there...

View Article
Browsing all 7 articles
Browse latest View live




Latest Images