我有以下例子說明這個問題: program FalseMemLeak;
uses
ShareMem;
var
o: TObject;
begin
o := TObject.Create; // "good" leak
RegisterExpectedMemoryLeak(o);
TInterfacedObject.Create; // b
當我從IDE運行它時,我的應用報告退出時出現此錯誤。對於在程序運行時創建的線程的每個實例,我通常會得到一個FastMM障礙,但它不足以描述此行爲。問題是我無法理解報告。 ---------------------------
APP.exe: Memory Error Detected
---------------------------
FastMM has detected an er
我正在尋找一些memoryleaks,並且我在FullDebugMode中使用FastMM來獲取事件日誌。這工作相當好,但堆棧跟蹤...不是很好。 簡單例子: This block was allocated by thread 0x25F8, and the stack trace (return addresses) at the time was:
4081E8 [FastMM4.pas]