COM and Threads

Teja tejovathi.p at gmail.com
Fri Oct 13 00:33:19 EDT 2006


hg wrote:

> Teja wrote:
> > hg wrote:
> >
> >> Teja 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??????
> >>>
> >> If COM is not thread safe, then use processes
> >
> > Thanks a LOT for your reply...... Can u please tell me how to
> > processes......
> >
>
> I gather pywin32 gives you the trick to do it (CreateProcess ?) as I
> gather "fork"ing is not available under Windows.

Hg, This is the scenario..

I create a COM object in main. I need to access that object in a thread
or subprocess or whatever. Can u pls tell me how to do it. Its a COM
object.

Thnks




More information about the Python-list mailing list