473,383 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

win32com 'catastrophic failure'

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)

I found on

http://support.microsoft.com/default...;en-us;q146120

a problem with "COleControl::IsInvokeAllowed()".
Is it possible, that this description is in relation to my problem ?
gerd
Dec 5 '05 #1
2 2629
"g.franzkowiak" <g.***********@onlinehome.de> wrote:

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?
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Dec 6 '05 #2

[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. 8-)

--
Richie Hindle
ri****@entrian.com
Dec 6 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: RJ | last post by:
Hi, I've been going over the Quick Start to Client side COM and Python and many other sources, but cannot find an example that will get my com/ActiveX .ocx USB device driver imported. The Excel...
4
by: J. Marshall Latham | last post by:
I have written an ASP.NET web app in C# that is trying to connect to a database using OleDb. I put code in a dll that uses another dll to create a connection object (and open it if requested) to...
1
by: g.franzkowiak | last post by:
I'm trying to use a proprietary windows software with COM and win32com. The result is everytime the error message com_error: (-2147418113, 'Catastrophic failure', None, None) I've read this in...
4
by: J. Marshall Latham | last post by:
I have written an ASP.NET web app in C# that is trying to connect to a database using OleDb. I put code in a dll that uses another dll to create a connection object (and open it if requested) to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.