我正在研究一个软件,所以我刚开始在我的项目中使用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