COM 'Catastrophic failure' ????

Mark Hammond MarkH at ActiveState.com
Wed Feb 14 23:17:21 CET 2001


Ben Shapiro wrote:

> Anyone know what could be causing the 'Catastrophic failure'??
> I am using an OCX as the media control
> 
> thx for your help
> 
> C:\code\3LP\PyFileunder>mediaplayer.py
> Traceback (most recent call last):
>   File "C:\code\3LP\PyFileunder\MediaPlayer.py", line 39, in ?
>     t = MediaPlayer()
>   File "C:\code\3LP\PyFileunder\MediaPlayer.py", line 22, in __init__
>     p = w.Open("c:\\code\\3LP\\pyfileunder\\music\\test.mp3")
>   File
> "c:\python20\win32com\gen_py\2DF09BC5-B050-11D2-81C1-00C0DFEAA961x0x1x0.py",
> line 75, in Open
>     return self._oleobj_.InvokeTypes(0x33, LCID, 1, (3, 0), ((8, 0),),URL)
> pywintypes.com_error: (-2147418113, 'Catastrophic failure', None, None)

I would guess that the media player wants a real OCX container. 
win32com doesnt support that.  Pythonwin does tho - see the 
pywin\demos\ocx samples and see if that helps it work.

Mark.

-- 
Nominate Your Favorite Programmers
for the Perl and Python Active Awards!
http://www.ActiveState.com/Awards/




More information about the Python-list mailing list