Subject | Multithreading and GDS32.DLL (IB5.6) |
---|---|
Author | mikko.laiho@nokia.com |
Post date | 2002-01-27T10:36:16Z |
I'm using IB5.6 on WinNT and developing with D5.
I have learned that with multi-threaded application using
gds32.dll I should have a separate database connection for
each thread and use TCP connection string style even when
IB server is on the same machine.
Will it be safe if I first make an Interbase api call for
a db connection with thread A and when that has returned
I later make call for the same db connection with thread B,
taking care that there is only a single call in execution
for a connection? In other words is there some thread
affinity built into gds32.dll that requires using the very
same thread for all calls dealing with a particular db
connection?
TIA,
--Mikko
I have learned that with multi-threaded application using
gds32.dll I should have a separate database connection for
each thread and use TCP connection string style even when
IB server is on the same machine.
Will it be safe if I first make an Interbase api call for
a db connection with thread A and when that has returned
I later make call for the same db connection with thread B,
taking care that there is only a single call in execution
for a connection? In other words is there some thread
affinity built into gds32.dll that requires using the very
same thread for all calls dealing with a particular db
connection?
TIA,
--Mikko