|Subject||RE: [IBO] How make thread safe?|
> --- In IBObjects@yahoogroups.com, "Alan McDonald" <alan@m...> wrote:somethig is wrong here - there's no reason for the server to freeze - you'll
> > > How I can check, that I use a client DLL (gds32.dll) in thread
> > > If not in thread-safe, how make in safe-mode?
> > >
> > > 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
> connection for
> > each thread to make it safe. Or you need to ensure that no 2
> threads use the
> > same connection simultaneously
> Each thread have
> 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 :(
have to look more closely at your code.
I assume you manually create these components inside each thread... you
don't rely on components on a form.. the VCL is not completely thread safe
either. If they are on a form, they are being created oustide the thread.