Search code examples
cwindowslinuxmemory-leaksmtrace

MALLOC_TRACE for Windows


In our company we have an inhouse framework similar to the mtrace (MALLOC_TRACE) functionality in glibc for detecting memory leaks. This framework is written to run on Windows, but it doesn't work very well in GNU/Linux.

So, do anybody know of a portable equivalent to mtrace (MALLOC_TRACE), that can run on Windows, GNU/Linux and hopefully even MacOSX?


Solution

  • Did you tried dmalloc?

    http://dmalloc.com/

    perhaps I think on linux valgrind is much better