[Twisted-Python] adbapi,adodbapi and pythoncom.CoInitialize()

Craig H. Anderson craig at coot.net
Mon Jun 14 19:47:45 EDT 2004

I would like to use adbapi with the com based adodbapi.
I found that the connect call hangs unless I add a call
to pythoncom.CoInitialize(). 

I guess I'm now the tester for using adbapi and adodbapi on

I found a reference to the problem at:


For a crude test I added pythoncom.CoInitialize()
when a new connection is made in
The connection and sql query then run successfully. 

import pythoncom
import sys 

sys.coinit_flags = 0
[ COM code here... ]

More information about the Twisted-Python mailing list