Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Memory Leak in ElPack 2011

TLMDLogSession.SendHeapStatus
TLMDLogDBSession.SendDataSetStructure

-> LIni: TLMDMemIniFile; isn't freeed

Why LMD doesn't use FastMM to get infos about existing Memory Leaks?
Tagged:

Comments

  • 3 Comments sorted by Votes Date Added
  • edited March 2011 Posts: 0Vote Up0Vote Down
    Why it should be freed in described methods if TLMDMemIniFile is created in TLMDIniCtrl component? Lini gets pointer to TLMDIniCtrl.FMemIniFile and it's destroyed in


    destructor TLMDIniCtrl.Destroy;
    begin
    if Assigned(FMemIniFile) then
    FreeAndNil(FMemIniFile);
    inherited;
    end;



    LIniCtr := TLMDIniCtrl.Create(nil);
    try
    LIniCtr.Target := itMemIniFile;
    LIni := LIniCtr.MemIniFile;
    ...
    finally
    LIniCtr.Free;
    end;



    So looks like FastMM misoperation here
  • I will recheck why FastMM will found a memory leak in this case.
Sign In or Register to comment.