RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSingletonImplementation Class

TSingletonImplementation is a base for simple classes that need a basic IInterface implementation, with reference counting disabled.

Pascal
TSingletonImplementation = class(TObject, IInterface);
C++
class TSingletonImplementation : public TObject, public IInterface;

TSingletonImplementation is a thread-safe base class for Delphi classes that support interfaces. Unlike System::TInterfacedObject, TSingletonImplementation does not implement reference counting.  

TSingletonImplementation is particularly useful when you have to create a singleton object that will not be destroyed when all references to it are lost. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!