Rob Kennedy wrote (referring to
var
  i : Integer;
begin
 for i := 0 to AList.Count do
   AList.Items[i].Free;
 AList.Free;
 inherited Destroy;
end;
):
> The only problem with that loop is that it tries to free one more than
> the number of items in the list.

Oops, I was reading
AList.Items[i].Free;
as
AList.Delete(i);

Sorry.
-malcolm

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to