CoInitialize error when using adodbapi
usenet at ixokai.net
Mon Feb 9 20:05:08 CET 2004
Basically, adodbapi uses COM, and COM and threads require a bit of care,
apparently. Your webkit thing may be using a thread to handle stuff.
... code ...
You need to call pythoncom.CoInitialize() once for each thread... theres
something about sys.coinit_flags = 0 (or 1) that may be nessecary but I
don't know what they mean precisely :)
"Max Ischenko" <max at ucmg.com.ua.remove.it> wrote in message
news:c089rb$7cg$1 at hyppo.gu.net...
> I'm using adodbapi wrapper arount OLEDB driver and I got this error when
> calling adodbapi.connect():
> (-2147221008, 'CoInitialize has not been called.', None, None)
> The weird part is that it occurs only when running under WebKit, my
> standalone test programs run just fine.
> I'm using py2.3 with win32all build 163, if that matters.
> Any ideas?
More information about the Python-list