Pre*_*ias 15 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;
并得到这个消息
 
如何启用这些FullDebugMode和LogMemoryLeakDetailsToFile开关?
Per*_*xus 21
FastMM4附带一个包含文件(FastMM4Options.inc).此文件包含FastMM4的所有选项,其中一些已注释掉.取消注释以激活它们,然后通过放入{$INCLUDE FastMM4Options.inc}dpr文件将inc文件包含在项目中.