You can either:
- try to use
LogAllocatedBlocksToFile
procedure. If itsALastAllocationGroupToLog
param is less thanAFirstAllocationGroupToLog
or is zero, then all blocks along with their allocation call stacks are logged. However, if your app has many memory allocations, prepare to long waiting. I experienced about 4 hrs wait time and 1.5Gb resulting file. (Side-note: use glogg to view such large files) - modify
FastMM4.pas
so implementation'sLogCallStack
will be visible in interface. Or you can try to use it directly fromFastMM_FullDebugMode.dll
On the side question: try to use DetectClassInstance
function.