Thema: Delphi IXMLdocument Memoryleak

Einzelnen Beitrag anzeigen

Sequitar

Registriert seit: 8. Jan 2016
74 Beiträge
 
Delphi 10.4 Sydney
 
#3

AW: IXMLdocument Memoryleak

  Alt 4. Nov 2016, 15:45
hallo, die leaks teste ich wie angegeben 8auskommentiert)mit nem eigenen tester. Dieser beutzt
Delphi-Quellcode:
Function Ttester.MemoryUsed: Cardinal;
Var
  St: TMemoryManagerState;
  Sb: TSmallBlockTypeState;
Begin
  GetMemoryManagerState(St);
  Result := St.TotalAllocatedMediumBlockSize + St.TotalAllocatedLargeBlockSize;
  For Sb In St.SmallBlockTypeStates Do
  Begin
    Result := Result + Sb.UseableBlockSize * Sb.AllocatedBlockCount;
  End;
End;
zur bestimmung des Verbrauchs

Unit dazu im Anhang
Angehängte Dateien
Dateityp: pas Unittests.pas (7,9 KB, 1x aufgerufen)
  Mit Zitat antworten Zitat