Subject Re: [IBO] Multiple instansiation of a TdataModulw with IBO
Author Bengt Skogvall
Is it possible to use the TdataModule from different threads, adhering to
all your suggestions?
I believe IntraWeb calls from different threads each time I have to produce
a new page.

Regards,
Bengt Skogvall

""Marco Krause"" <mkrause@...> schrieb im Newsbeitrag
news:78D6C60128280A4C8A59D48EF88AAFAF035163@......
> > I need it for Intraweb. I have the very strange behavior, that when
> > more than one session was active at a time, after the last session
> > has been ended, I get a AV when trying to instanciate the TdataModule
> > contain the IBO stuff for the next session.
>
> If your IntraWeb application is multi-threaded, than it is important,
> that you have a TIB_Session in your datamodule. From the online-faq:
>
> One thing to ensure is that each thread needs to create a TIB_Session
component. Then, when you create the other components, like the
TIB_Connection, make that TIB_Session instance the owner of the other IBO
components the thread uses.
> Make sure the TIB_Session is FIRST in the creation order.
>
> --
> Marco Krause
>
>
>
___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
> without the need for BDE, ODBC or any other layer.
>
___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>