Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable full debug mode in FastMM4?

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?

like image 906
PresleyDias Avatar asked Dec 22 '11 07:12

PresleyDias


1 Answers

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.

like image 154
PersonalNexus Avatar answered Nov 05 '22 13:11

PersonalNexus