Subject | Re: [ib-support] THREAD PROGRAMMING |
---|---|
Author | Toni Pljakoski |
Post date | 2002-03-13T12:38:45Z |
""Jason Frey"" <jason_frey@...> wrote in message
news:001e01c1bedf$ae28abd0$3500a8c0@jasonxp...
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
news:001e01c1bedf$ae28abd0$3500a8c0@jasonxp...
> Make sure the thread has it's own database connection (And Session ifyou'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