[python-win32] COM with timeouts?
Mark Hammond
skippy.hammond at gmail.com
Tue Feb 10 01:18:19 CET 2009
On 10/02/2009 4:12 AM, Stephen Hansen wrote:
> Hi all.
>
> I have an application that's controlling Word via COM, and have
> situations where I'd like to set a timeout on those operations. Word
> might throw up an error message for example which stalls everything
> until clicked. In such a case I'd rather just give up, go and kill
> Word and start over.
If you kill the Word process, you could expect the COM RPC mechanism
will then return from the blocked call with some exception.
Cheers,
Mark
More information about the python-win32
mailing list