How to enable full debug mode in FastMM4?

PresleyDias picture PresleyDias · Dec 22, 2011 · Viewed 14.9k times · Source

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 enter image description here

How do I enable these FullDebugMode and LogMemoryLeakDetailsToFile switches?

Answer

PersonalNexus picture PersonalNexus · Dec 22, 2011

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.