Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting a longer stacktrace from FastMM?

When FastMM logs a memory leak it includes a stacktrace going back 9 calls. Problem is that the stacktrace is too general to locate the problem easily. The last function call in the trace is called at least 50 times and the object leaked is a very common one.

What can I do to make the stacktrace longer?

Tips to locate leaks more easily are of course welcome, the objects leaked are mostly interfaces, so it's something with cross-referencing or _ReleaseRef not called.

I'm on Delphi 7, using the FastMM492.

like image 409
The_Fox Avatar asked Sep 23 '09 20:09

The_Fox


1 Answers

Change the StackTraceDepth constant in FastMM4.pas.

like image 138
Rob Kennedy Avatar answered Sep 21 '22 08:09

Rob Kennedy