SetAlternateSession method |
Applies to
TIB_Session
Declaration
Class procedure SetAlternateSession(ASession:TIB_Session );
Description
This class method is used to make two processes share a common default
component session. This can be used in order to make DLL instances share the
same component session as the main EXE that is calling into the DLL.
Otherwise, the global focusing mechanisms would not behave properly because
it all operates within the context of a single component session. The
assumption being that all user interface manipulations should be done in the
main process and not in sub-processes.
Each DLL that contains IB Objects code that will interact with IB Objects
code in the main process should export a procedure which will give it the
main processes DefaultSession so that the DLL can set it as its
AlternateSession. This will make them all operate based upon the very
same component session.