Delphi-Quellcode:
SetLength(Players, Length(Players) + 1);
Players[Length(Players)] := TPlayer.Create(Name);
Dynamische Arrays sind 0-Basierend:
Erhöhung von 0 -> 1 Players
Players[Length(Players)] := TPlayer.Create(Name);
Length(Players) = 1
aber nur Players[0] gültig
Besser
Players[High(Players)] := TPlayer.Create(Name);
Windows Vista - Eine neue Erfahrung in Fehlern.