13
我想不出如何使用FastMM。我已經從SourceForge下載它並將FastMM4Messages.pas和FastMM4.pas放在我的dpr文件的頂部。如何在FastMM4中啓用完整調試模式?
我現在調用這個過程泄漏一些內存:
procedure testMemoryFastMM;
var
str : TStringList;
begin
str:=TStringList.Create;
str.add('MemChk');
str.SaveToFile('C:\leeMemChk.txt');
end;
,並得到這個消息
如何使這些FullDebugMode和LogMemoryLeakDetailsToFile交換機?
yes..the FastMM4Options.inc文件存在...我取消註釋了.. {$ define LogErrorsToFile}和{$ define LogMemoryLeakDetailToFile},但仍然有評論說「{設置此選項以將所有錯誤記錄到文本文件與 應用程序在同一個文件夾中,內存錯誤(設置了FullDebugMode選項)將被追加到日誌文件中,如果沒有設置「FullDebugMode」,則不會產生影響}「.... so how to set」 FullDebugMode「 – PresleyDias 2011-12-22 09:19:16
'FullDebugMode'是同一個.inc文件中可用的定義之一。 – 2011-12-22 09:21:51
@ RemyLebeau-TeamB謝謝你發現它... – PresleyDias 2011-12-22 09:39:29