[python-win32] Re: Help with: pywintypes.com_error: (-2147418113, 'Catastrophic failure', None, None)?

Thomas Heller theller at python.net
Fri Jan 30 02:50:02 EST 2004


Ray Schumacher <rays at blue-cove.com> writes:

>>>> from win32com.client import *
>>>> util = Dispatch("EDREUTLX.EDREUtlXCtrl.1")
>>>> util
> <win32com.gen_py.EDRE Utility Control._DEDREUtlX instance at 0x11224288>
>>>> # pop-up, no args
> ... util.AboutBox()
> Traceback (most recent call last):
>   File "<stdin>", line 2, in ?
>   File "C:\Python23\lib\site-packages\win32com\gen_py\8AA34F82-95C9-11D3-8EB6-00
> C0DF2247CAx0x3x5.py", line 34, in AboutBox
>     return self._oleobj_.InvokeTypes(-552, LCID, 1, (24, 0), (),)
> pywintypes.com_error: (-2147418113, 'Catastrophic failure', None, None)
>
> So, the util class Dispatches, but _all_ calls (properties and
> functions) give 'Catastrophic failure' Is this really some sort of
> types problem with this OCX?

Can it be that the ocx isn't correctly initialized?
Maybe it only works if hosted in a real activeX container?

You could try to search for help in an atl group...

Thomas




More information about the Python-win32 mailing list