我正在研究一個軟件,所以我剛開始在我的項目中使用FastMM4(真實的)。FastMM4,如何讀取日誌文件?
我在網上找到關於如何在FastMM4中獲得line number
的信息,我得到了行號,但是我可以弄清楚日誌中其他信息的含義是什麼?
我有這個日誌文件
This block was allocated by thread 0x15F8, and the stack trace (return addresses) at the time was:
402E86 [system.pas][System][[email protected]][2648]
403A3B [system.pas][System][System.TObject.NewInstance][8824]
403DAA [system.pas][System][[email protected]][9489]
403A70 [system.pas][System][System.TObject.Create][8839]
46A257 [u_home.pas][u_home][u_home.TForm1.SpeedButton1Click][80] {<-memory leak is here, but what are the Other detections?}
443AAC [Controls.pas][Controls][Controls.TControl.Click][5226]
46958B [Buttons.pas][Buttons][Buttons.TSpeedButton.Click][1211]
46956B [Buttons.pas][Buttons][Buttons.TSpeedButton.MouseUp][1204]
443FB2 [Controls.pas][Controls][Controls.TControl.DoMouseUp][5352]
441BA0 [Controls.pas][Controls][Controls.TControl.SetMouseCapture][4379]
444042 [Controls.pas][Controls][Controls.TControl.WMLButtonUp][5364]
The block is currently used for an object of class: TStringList
The allocation number is: 440
在此
的leak
是
46A257 [u_home.pas][u_home][u_home.TForm1.SpeedButton1Click][80] {<-memory leak is here, but what are the Other detections?}
我的代碼
procedure TForm1.SpeedButton1Click(Sender: TObject);
var
str : TStringList;
begin
str := TStringList.Create; {<--im not freeing the, so leak}
end;
這裏是call stack
我搜索網上的,但我不知道什麼是其他檢測...
402E86 [system.pas][System][[email protected]][2648]
403A3B [system.pas][System][System.TObject.NewInstance][8824]
403DAA [system.pas][System][[email protected]][9489]
403A70 [system.pas][System][System.TObject.Create][8839]
{Other then this}
46A257 [u_home.pas][u_home][u_home.TForm1.SpeedButton1Click][80] {<-memory leak is here, but what are the Other detections?}
{Other then this}
443AAC [Controls.pas][Controls][Controls.TControl.Click][5226]
46958B [Buttons.pas][Buttons][Buttons.TSpeedButton.Click][1211]
46956B [Buttons.pas][Buttons][Buttons.TSpeedButton.MouseUp][1204]
443FB2 [Controls.pas][Controls][Controls.TControl.DoMouseUp][5352]
441BA0 [Controls.pas][Controls][Controls.TControl.SetMouseCapture][4379]
444042 [Controls.pas][Controls][Controls.TControl.WMLButtonUp][5364]
使用delphi 2006
我已經打開並試圖將IM同樣在delphi 6, delph 7
也
檢查 我發現這與fastMM $ detectiong和已經在delphi中的一些泄漏的註冊有關。 How to track down tricky memory leak with fastMM? 和這注冊泄漏,但他們是錯誤? Using FastMM4, how to register leaked string?
而且FastMM4, Delphi6, Leak of TApplication?
OR are they just the steps leading to the memory leak?
+ 1,OK,總之他們是'steps'它們會導致內存泄漏? – PresleyDias 2012-04-09 10:51:17
有沒有辦法只顯示/顯示單元名稱/類名/行號,就像這個'46A257 [u_home.pas] [u_home] [u_home.TForm1.SpeedButton1Click] [80]' – PresleyDias 2012-04-09 10:53:32
我不知道我不明白最後一個問題。 – 2012-04-09 11:07:20