如何在FastMM4中启用完整调试模式?

时间:2011-12-22 07:56:59

标签: delphi memory-leaks fastmm

我无法弄清楚如何使用FastMM。我从SourceForge下载了它,并将FastMM4Messages.pas和FastMM4.pas放在我的dpr文件的顶部。

我现在称这个程序泄漏了一些内存:

procedure testMemoryFastMM;
    var
     str : TStringList;
       begin
    str:=TStringList.Create;
    str.add('MemChk');
    str.SaveToFile('C:\leeMemChk.txt');
  end;

并收到此消息  enter image description here

如何启用这些FullDebugMode和LogMemoryLeakDetailsToFile开关?

1 个答案:

答案 0 :(得分:20)

FastMM4附带一个包含文件(FastMM4Options.inc)。此文件包含FastMM4的所有选项,其中一些已注释掉。取消注释以激活它们,然后将{$INCLUDE FastMM4Options.inc}放入dpr文件中,将inc文件包含在项目中。

相关问题