How to enable full debug mode in FastMM4?
-
24-03-2021 - |
Question
I cannot figure out how to use FastMM. I have downloaded it from SourceForge and placed FastMM4Messages.pas and FastMM4.pas at the top of my dpr file.
I now call this procedure to leak some memory:
procedure testMemoryFastMM;
var
str : TStringList;
begin
str:=TStringList.Create;
str.add('MemChk');
str.SaveToFile('C:\leeMemChk.txt');
end;
and get this message
How do I enable these FullDebugMode and LogMemoryLeakDetailsToFile switches?
Solution
FastMM4 comes with an include file (FastMM4Options.inc). This file contains all of FastMM4's options, some of which are commented out. Uncomment to activate them and then include the inc file in your project by placing {$INCLUDE FastMM4Options.inc}
in your dpr file.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow