Kann ich nicht nachvollziehen
Delphi-Quellcode:
program dp_185142;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.Generics.Collections,
System.SysUtils;
type
TTeUpdateDBIDState =
record
id:
string;
AccountBindOnUse: Boolean;
AccountBound: Boolean;
HideSuffix: Boolean;
MonsterOnly: Boolean;
NoMysticForge: Boolean;
NoSalvage: Boolean;
NoSell: Boolean;
NotUpgradeable: Boolean;
NoUnderwater: Boolean;
SoulbindOnAcquire: Boolean;
SoulBindOnUse: Boolean;
Unique: Boolean;
end;
procedure Test;
var
IDListEx: TList<TTeUpdateDBIDState>;
LItem: TTeUpdateDBIDState;
begin
// TaskManager -> 588KB
IDListEx := TList<TTeUpdateDBIDState>.Create;
try
while IDListEx.Count < 41000
do
begin
LItem.id := ( IDListEx.Count + 1 ).ToString;
IDListEx.Add( LItem );
end;
finally
// TaskManager -> 2892KB
IDListEx.Free;
end;
end;
begin
try
Test;
except
on E:
Exception do
Writeln( E.ClassName, '
: ', E.
Message );
end;
// TaskManager -> 1864KB
ReadLn;
end.
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ea 0a 4c 14 0d b6 3a a4 c1 c5 b9
dc 90 9d f0 e9 de 13 da 60)