Bde.DBTables.TSession.Destroy
Delphi
destructor Destroy; override;
C++
__fastcall virtual ~TSession(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
destructor | public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | TSession |
Description
Destroys the instance of a session component.
Do not call Destroy directly. For session components other than the default session, an application should call Free, which verifies that the session component is not nil before calling Destroy.
Warning: Never destroy the default session. Freeing of the default session is handled automatically when an application terminates.
Destroy performs the following actions before calling its inherited destructor:
Makes the session inactive, which closes all database connections.
Removes the session from the session list.
Resets database session references, if necessary.
Frees the list of database components associated with the session.