'Catastrophic failure's trying to use OCX

John J Lee jjl at pobox.com
Mon Apr 7 21:14:44 EDT 2003


On Tue, 8 Apr 2003, Gary Stephenson wrote:

> I am trying to interface to an .OCX file.  After successfully running makepy
> over it, this is what happens:
[...]
> pywintypes.com_error: (-2147418113, 'Catastrophic failure', None, None)
> >>>
>
> Exactly the same thing occurs if I use late-binding instead (via
> win32.com.client.Dispatch.dynamic('....').
>
> What am I doing wrong?

You're not -- it's a bug in the server.  IIRC, it means the server didn't
catch an exception, or caused an access violation, neither of which a COM
server is supposed to allow to happen.  It's really a COM question you're
asking, not a Python question, though.


John





More information about the Python-list mailing list