Exception when creating com-object in thread

Mark Hammond MarkH at ActiveState.com
Thu Jul 20 06:54:13 EDT 2000


"Arpad Kiss" <sekter at matavnet.hu> wrote in message
news:XFMail.20000719222515.sekter at matavnet.hu...
> 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..).

You are correct.  You may also call CoInitializeEx() if you want the
thread in the free-threading apartment.  COM threading models are beyind
the scope of this newgroup (but are in the scope of Andy and my book :-)

Mark.






More information about the Python-list mailing list