win32com 'catastrophic failure'

T

Tim Roberts

g.franzkowiak said:
I'm trying to interface to an .ocx file.
After successfully running makepy over it, the following is my problem:

com_error: (-2147418113, 'catastrophic failure', None, None)

That's not nearly enough information. -2147418113 is 0x8000FFFF, which is
E_UNEXPECTED. That's a generic error which may mean that you called
something in the wrong order, or provided a parameter that was not
expected.

What OCX were you calling, and what did the code look like?
 
R

Richie Hindle

[gerd]
com_error: (-2147418113, 'catastrophic failure', None, None)

The last time I saw this error it was because I'd created a control instance
but hadn't initialised it before trying to use it. I had to do something
like this (apologies for the C++):

IPersistStreamInit* IPSI = NULL;
pUnknown->QueryInterface(IID_IPersistStreamInit, (void**) &IPSI);
IPSI->InitNew();
IPSI->Release();

(pUnknown is the IUnknown of my newly-created control; error checking
omitted).

There are probably a million reasons why you might be getting that error,
but if this doesn't help then at least you'll have narrowed it down to
999,999. :cool:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top