12

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.

The_Fox
  • 6,992
  • 2
  • 43
  • 69

2 Answers2

26

Change the StackTraceDepth constant in FastMM4.pas.

Rob Kennedy
  • 161,384
  • 21
  • 275
  • 467
1

Have a look at FastMM4 Options Interface from Jed Software. It is a freeware application to configre FastMM

Charles Faiga
  • 11,665
  • 25
  • 102
  • 139