Exception when creating com-object in thread

Arpad Kiss sekter at matavnet.hu
Wed Jul 19 16:33:56 EDT 2000


Hi,
In every thread you have to call pythoncom.CoInitialize at first(before any
other COM API call), but in the main thread
CoInitialize is called by the Python framework automaticly(if i am right..).
Arpad


On 19-Jul-2000 Nils Otto Johansen wrote:
> Hi!
> 
> When I am running a threaded python script, and in one of the threads 
> want to creata a instance of a com class, an exception is raised saying :
> 
> CoInitialize is not called  
> (freely transleted from norwegian :"CoInitialize er ikke kalt.")
> 
> any suggestions ??
> 
> What is CoInitialize, and how and why do I call it
> 
> Nils
> -- 
> http://www.python.org/mailman/listinfo/python-list

----------------------------------
E-Mail: Arpad Kiss <sekter at matavnet.hu>
Date: 19-Jul-2000
Time: 22:12:22

This message was sent by XFMail
----------------------------------




More information about the Python-list mailing list