Imagine I have a class: TCantBeDestroyed
Some one knows how to create a kind of instance that can't be destroyed in both cases, directly: CantBeDestroyed.Free; CantBeDestroyed.Destroy;
And can't be destroyed by cast: TObject(CantBeDestroyed).Free; TObject(CantBeDestroyed).Destroy;
Tks.