COM and Threads
Roger Upole
rupole at hotmail.com
Thu Oct 12 23:56:43 EDT 2006
"Teja" <tejovathi.p at gmail.com> wrote:
>I have an application which uses COM 's Dispatch to create a COM based
> object. Now I need to upgrade the application to a threaded one. But
> its giving an error that COM and threads wont go together. Specifically
> its an attribute error at the point where COM object is invoked. Any
> pointers please??????
>
An actual traceback would help.
At a guess, when using COM in a thread
you need to call pythoncom.CoInitialize and
CoUninitialize yourself.
Roger
More information about the Python-list
mailing list