TInterfacedObjectEx Class

Provides an improved implementation for TInterfacedObject that was introduced in Delphi XE7 for earlier versions. It makes sure that reference counting during destruction does not call the destructor recursively by using the highest bit in the FRefCount field to mark the instance as currently being destroyed.

Namespace: Spring
TInterfacedObject
  Spring.TInterfacedObjectEx
    Spring.Collections.Base.TEnumerableBase
type
 TInterfacedObjectEx = class(TInterfacedObject)
 end;

The TInterfacedObjectEx type exposes the following members.

Show:
 NameDescription
objDestroyingFlag

Represents constant objDestroyingFlag.

Top
Show:
 NameDescription
RefCount

Represents property RefCount.

Top
Show:
 NameDescription
BeforeDestruction

Represents method BeforeDestruction.

GetRefCount

Represents method GetRefCount.

Top