A base class that allows to simplify memory management for object referenced by several other objects.
For a list of all members of this type, see TSharedObject members.
TSharedObject = class(System.TObject);
TSharedObject allows to simplify memory management for object referenced by several other objects. TSharedObject holds a count of references to itself. When any object (referer object) is going to use TSharedObject, it calls the TSharedObject.AddRef method. Referer object has to call the TSharedObject.Release method after using TSharedObject.