Changeset 424 for trunk/Packages/Common/UDebugLog.pas
- Timestamp:
- Apr 25, 2022, 6:22:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UDebugLog.pas
r423 r424 4 4 5 5 uses 6 Classes, SysUtils, FileUtil, fgl, SyncObjs;6 Classes, SysUtils, FileUtil, Generics.Collections, SyncObjs; 7 7 8 8 type … … 13 13 Group: string; 14 14 Text: string; 15 end; 16 17 TDebugLogItems = class(TObjectList<TDebugLogItem>) 15 18 end; 16 19 … … 27 30 procedure SetMaxCount(const AValue: Integer); 28 31 public 29 Items: T FPGObjectList<TDebugLogItem>;32 Items: TDebugLogItems; 30 33 Lock: TCriticalSection; 31 34 procedure Add(Text: string; Group: string = ''); … … 116 119 begin 117 120 inherited; 118 Items := T FPGObjectList<TDebugLogItem>.Create;121 Items := TDebugLogItems.Create; 119 122 Lock := TCriticalSection.Create; 120 123 MaxCount := 100; … … 125 128 destructor TDebugLog.Destroy; 126 129 begin 127 Items.Free;128 Lock.Free;130 FreeAndNil(Items); 131 FreeAndNil(Lock); 129 132 inherited; 130 133 end;
Note:
See TracChangeset
for help on using the changeset viewer.