Re: [python-win32] Bug in pythoncom.CoInitialize(Ex)

2005-11-09 Thread Gabriel Genellina
At Tuesday 8/11/2005 22:36, Mark Hammond wrote: >What I propose is that I change CoInitialize() to ignore this specific >RPC_E_CHANGED_MODE error. My reasoning is that people calling >CoInitialize() don't care about the threading model - all they want is to be >able to use a COM object from their

[python-win32] Bug in pythoncom.CoInitialize(Ex)

2005-11-08 Thread Mark Hammond
There is a subtle bug in CoInitialize and CoInitializeEx. I'd like some feedback on how to best fix it. The problem is that error results from these functions are not reported correctly. This is best demonstrated by example: --- coinit.py --- import thread, time import pythoncom def wtf():