Hallo,
wo steht, daß eine TObjectList keine Lücken zuläßt?
Delphi-Quellcode:
List := TObjectList.Create;
List.Add (TObject.Create);
List.Add (TObject.Create);
List.Add (TObject.Create);
List.Add (TObject.Create);
List.Add (TObject.Create);
Count := List.Count; // Count=5
List[3] := NIL;
Count := List.Count; // Count=5
List.Pack;
Count := List.Count; // Count=4
List.Free;
Gruß Hawkeye