Error connecting to COMServer

Mike Müller mmueller at
Fri Jun 8 14:34:16 CEST 2001


with the help of a wizard in a compiler I managed to create an COM
server in FORTRAN. Testing from VB works fine just by choosing the
registered server in the projects/Verweise (sorry only German Version)
Dim Adder As New AddingMachine  
creates the server object.

Unfortunately from python I get:

>>> from win32com.client import Dispatch
>>> a = Dispatch("Adder.AddingMachine")
Traceback (innermost last):
  File "<interactive input>", line 1, in ?
  File "D:\code\Python\win32com\client\", line 94, in
    dispatch, userName =
  File "D:\code\Python\win32com\client\", line 66, in
    return (_GetGoodDispatch(IDispatch, clsctx), userName)
  File "D:\code\Python\win32com\client\", line 57, in
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
com_error: (-2147418113, 'Schwerer Fehler', None, None)

which is a 'Catastrophic failure' at least the –2147418113
translates to this.

It does not matter if I use COM Makepy or not, the error remains.
I do NOT know where to look. The compiler generated a bunch of files
(*.idl, *.f90., *.def).
Where could be the problem? What would be the most important place to
Can I conclude anything if I look into at the file generated by COM

Thanks for some hints?


More information about the Python-list mailing list