Subject | Re: [IBO] IBO inside a dll |
---|---|
Author | Martijn Tonies |
Post date | 2002-01-08T08:41:44Z |
Hi,
"Geoff Worboys" <geoff@...> schreef in bericht
news:1541948875.20020108193914@......
False.
created in code now.
(TIBOQuery for example) - but I think when you link a TIBOxxx
to a TIB_Connection it uses the session from that TIB_Connection
component... right?
--
Martijn Tonies
Upscene Productions
InterBase Workbench - The Developer Tool for InterBase
http://www.interbaseworkbench.com
"Experience is what you get when you didn't get what you wanted"
"Geoff Worboys" <geoff@...> schreef in bericht
news:1541948875.20020108193914@......
> > One more question: to be on the safe side, is it okay to create aI already have a TIB_SessionProps and I set the 'usedefaultsession' to
> > TIB_Session for each connection? If I build this now, it would be
> > a lot easier when I implement multi-threading later on...
>
> Its safe but it can get more complicated, and I guess it uses
> additional resource (but not much as far as I can tell).
>
> The various IBO components are setup so that the standard
> .Create(AOwner: TComponent) constructor will create the component
> attached to the default TIB_Session instance (the first session
> created when the application/thread starts).
False.
> You can assign to the IB_Session property to alter which instances ofI don't have any components at forms or data modules - everything is
> TIB_Session is associated with the component.
>
> If you are creating components in code then you can use the special
created in code now.
> CreateForSession( AOwner: TComponent; ASession: TIB_Session )Jups, noticed that method -- but not all components have it
> constructor which will create the component associated with the
> required session.
>
> I have used the latter (CreateForSession) in multi-threaded apps. I
> have never actually tried a direct assignment to the IB_Session
> property of ibo components, but the feature does exist.
(TIBOQuery for example) - but I think when you link a TIBOxxx
to a TIB_Connection it uses the session from that TIB_Connection
component... right?
--
Martijn Tonies
Upscene Productions
InterBase Workbench - The Developer Tool for InterBase
http://www.interbaseworkbench.com
"Experience is what you get when you didn't get what you wanted"