You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This behaviour is the same of TArray<T>, but maybe there could be a way of solving this.
When using with classes, e.g. TBetterArray<TObject>, the internal list keeps a wrong reference of the objects even after they are destroyed:
var
Objects: TBetterArray<TObject>;
Obj1: TObject;
begin
Obj1 := TObject.Create;
Objects := [Obj1];
FreeAndNil(Obj1);
CheckFalse(Assigned(Obj1)); // ok
CheckFalse(Assigned(Objects[0])); // error: should be false, but returns true
end;
The text was updated successfully, but these errors were encountered:
This behaviour is the same of
TArray<T>
, but maybe there could be a way of solving this.When using with classes, e.g.
TBetterArray<TObject>
, the internal list keeps a wrong reference of the objects even after they are destroyed:The text was updated successfully, but these errors were encountered: