onsbomma said:
Hallo
Does anyone knows a program that monitors the heap??
I want to test the fragmentation of mallocs and therefor I must know the
memory usage of all times.
thx
I would recommend going through:
http://users.bestweb.net/~ctips
The kind of steps he takes to find and prevent memory errors makes me
fear ever working on a large project. Essentially the idea is to access
all of your variables through macros, and within the macros you add in
various checking and debug capabilities when needed. Among these is
examples for keeping track of all allocated/freed memory and logging
that data without effecting your application as much as possible.
Best read sequentially until you get an answer. (And note that he
appears to have written example code directly into the web pages
instead of copy and pasting from real projects, so there may be bugs.)
-Chris