How to enable full debug mode in FastMM4?

2019-01-23 05:01发布

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?

1条回答
男人必须洒脱
2楼-- · 2019-01-23 05:18

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.

查看更多
登录 后发表回答