Subject Re: [ib-support] THREAD PROGRAMMING
Author Toni Pljakoski
""Jason Frey"" <jason_frey@...> wrote in message
news:001e01c1bedf$ae28abd0$3500a8c0@jasonxp...

> Make sure the thread has it's own database connection (And Session if
you're..


Hi Jason,

In my application threads undefinite threads are stated and I use one DB
handle, which is guarded by a Mutex and connected on thread start and
disconnected on thread end. In the first thread everything is O.K., but
in the second thread on Database disconnect I get SQLCODE -901
Unsuccessful execution caused by system error that does not preclude
successful execution of subsequent statements !!

My enviroment (RedHat Linux 7.1, gcc version 2.96, Interbase 6.01,
Embedded SQL + gpre)

Thank you in advance for some tips

Regards
Toni