Diman
Admin
 Admin
| Posts: 1482 |  | Karma: 19 |
|
Re:sharing a TADConnection?
|
|
Posted: 2007/10/03 09:53 |
|
|
|
|
Hello
1) Yes, you are lucky. Although AnyDAC code has the code protecting ADConnection against it usage from multiple threads. This code is not finished, and cannot be finished, due to VCL nature (as MMM_Copr sayd). 2) Most (all ?) DBMS's cannot handle mutiple requests in one connection in parallel. At first, because each user session is using on thread. One thread cannot do many things in parallel.
So, use one ADConnection per one thread. That will be always safe and not blocking other threads.
Regards, Dmitry
|
|