Subject | Re: [IBO] How make thread safe? |
---|---|
Author | a_kassasys |
Post date | 2005-10-06T06:38:32Z |
--- In IBObjects@yahoogroups.com, "Alan McDonald" <alan@m...> wrote:
IB_Session:TIB_Session;
IB_Connection: TIB_Connection;
Transaction: TIB_Transaction;
FIB_Script: TIB_Script;
FQuery: TIB_Query;
and making diffrent connection
if I make only one thread - all working,
if use 2 or more threads - server freezes :(
> > How I can check, that I use a client DLL (gds32.dll) in threadsafe?
> > If not in thread-safe, how make in safe-mode?connection for
> >
> > I try sample in Samples, but these examples do not work, the
> > application is blocked (freezes) nothing also occurs: (
> >
> > Is it mean, non-safe thread?
> >
>
> the client library is not thread safe. You need a separate
> each thread to make it safe. Or you need to ensure that no 2threads use the
> same connection simultaneouslyEach thread have
IB_Session:TIB_Session;
IB_Connection: TIB_Connection;
Transaction: TIB_Transaction;
FIB_Script: TIB_Script;
FQuery: TIB_Query;
and making diffrent connection
if I make only one thread - all working,
if use 2 or more threads - server freezes :(