RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSession.Create Constructor

Creates an instance of a TSession component.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TSession(TComponent * AOwner);

Do not call Create directly. The default session component, Session, is created automatically for all database applications. To create additional sessions for a multi-threaded database application at runtime call Sessions.OpenSession instead of Create. OpenSession calls Create only if the session does not already exist. (At design time, create additional sessions by dropping them on a data module.) 

Create calls its inherited constructor and ensures that the session component cannot be inherited should the data module or form on which it is placed be stored in the Object Repository. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!