I set the FullDebugMode
in FastMM4
and it generates the *_EventLog.txt
file now. It contains the stack trace, the memory allocation number, etc.
The stack trace section is very short (I don't know where it is come from to a generic code segment) and hard to trace the things "by hand".
How can I stop the prog when it is about to allocate the given number mem block, when I run it next time?
Some leaks happens on app startup so the mem alloc numbers are constants for these leaks.