Differences between version 2 and predecessor to the previous major change of MMGR.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Monday, February 23, 2004 3:16:11 pm | by JohnMcPherson | Revert |
Older page: | version 1 | Last edited on Saturday, August 23, 2003 5:45:45 pm | by SamJansen | Revert |
@@ -1,3 +1,7 @@
A malloc(3) debugger library written by Paul Nettle who writes for [http://www.flipcode.com]. Quite useful and featureful, works well for both C and C++. A download link can be found [here|http://www.fluidstudios.com/publications.html].
-''I used MMGR in a medium sized C++ project; it was around 10,000 lines not including external libraries (of which there were many). It found a
all the memory leaks which were leading to quite a memory hungry program. This library might be an option for platforms Valgrind is not available on'' -- SamJansen
+It works on both WIN32 and gcc/unix platforms (although I had to comment out a line that did #include "stdafx.h", which appears to be some windows-specific header).
+
+Basically, you include the mmgr.h header file after standard includes and before your own program's include headers, and then link against the mmgr.o. Running your executable will create a "memleaks.log" file in your current working directory.
+
+
''I used MMGR in a medium sized C++ project; it was around 10,000 lines not including external libraries (of which there were many). It found all the memory leaks which were leading to quite a memory hungry program. This library might be an option for platforms Valgrind is not available on'' -- SamJansen