dbExpress连IB,在多线程中使用有时出现在Open时当住的问题,有没有办法解决?(200分)

猛禽

Unregistered / Unconfirmed
GUEST, unregistred user!
如题。
Delphi6.02 + IB6.01
线程是Indy的IdTCPServer生成的

CSDN上也有200分,解决者两边分都给。
http://expert.csdn.net/Expert/topic/1204/1204888.xml?temp=.8354303
 
什么错误?
 
无错误,执行到Open时就不动了,程序无响应。
我到Borland新闻组上查了一下:

For Delphi 6... TSQLConnection makes use of one unprotected global variable
(GetDriver) which is certainly not thread-safe. However, if only one
dbExpress driver is ever loaded (e.g. application only ever uses the MySQL
driver) then the code can be considered thread-safe.

- Brian

可是我只用了一个驱动:IB
也只用一个全局的TSQLConnection
还是会有这种问题。
 
搞定了,dbx完全不能多线程,faint
 
顶部