Sign in Join
FPDoc Onlineexperiment

TBaseSingleInstance class

In unit SingleInstance

Abstract class for single application instance.

Declaration

pascal
TBaseSingleInstance = class(TComponent)

Inheritance

  1. TBaseSingleInstance
  2. TComponent
  3. TPersistent
  4. TObject

Descends from it: TAdvancedSingleInstance

Description

TBaseSingleInstance is the abstract parent for classes that allow you to control the instances if your application. You must never instantiate TBaseSingleInstance directly, instead, use for example the TAdvancedSingleInstance class.

Errors

Instantiating and using this class will result in abstract errors.

See also

Properties

TimeOutMessagespublicTimeout when waiting for messages.
TimeOutWaitForInstancespublicTimeout when trying to contact server instance.
StartResultpublicContains the result of the last Start call.
IsServerpublicIs this application the server instance ?
IsClientpublicIs this application the client instance ?

Methods

GetIsClientprotected
GetIsServerprotected
GetStartResultprotected
DoServerReceivedParamsprotected
SetStartResultprotected
CreatepublicCreate a new instance of the TBaseSingleInstance class.
DestroypublicStop waiting and destroy the instance.
StartpublicCheck if another instance of the application is running.
StoppublicStop the current instance.
ServerCheckMessagespublicCheck for messages from a client application.
ClientPostParamspublicSend parameters to the server.

Events

OnServerReceivedParamspublicEvent triggered during ServerCheckMessages.

Inherited

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (37)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.