Description ​
TPlainInterfacedPersistent is a subclass of TPersistent that implements the IInterface interface. Unlike TInterfacedObject, instances of TPlainInterfacedPersistent are not reference-counted by default (RefCounted = False). This prevents unexpected destruction when casting to interface types or passing interface references.
Reference counting can be enabled per-instance by setting the protected RefCounted property to True.
Properties ​
| Name | Type | Description |
|---|---|---|
| RefCount | Integer | Returns the current reference count of the object instance. |
| RefCounted | Boolean | Controls whether COM-style reference counting manages the instance lifetime. |