在FastMM4花費時間清除任何可能導致內存泄漏的代碼片段(如FastMM4所示)之後,我們一直在Windows 7上測試運行我們的軟件約一個月不間斷。這就是我所看到的遠在我的軟件過程的任務管理器中。 > -CPU started out at 1% and 0%. Now it is bouncing around from 2% to 5%
> -VM usage started out a
如何獲得由FastMM分配的內存總量? 我已經試過了: function GetTotalAllocatedMemory: Cardinal;
var
MMState: TMemoryManagerState;
begin
GetMemoryManagerState(MMState);
Result := MMState.TotalAllocatedMediumB
我想不出如何使用FastMM。我已經從SourceForge下載它並將FastMM4Messages.pas和FastMM4.pas放在我的dpr文件的頂部。 我現在調用這個過程泄漏一些內存: procedure testMemoryFastMM;
var
str : TStringList;
begin
str:=TStringList.Create;