This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

Memory Leak in ElPack 2011

edited March 2011 in LMD ElPack
TLMDLogSession.SendHeapStatus
TLMDLogDBSession.SendDataSetStructure

-> LIni: TLMDMemIniFile; isn't freeed

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

Comments

  • edited March 2011
    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.