It's the library of the Xcalibur, a propietary program used in proteomics. to read spectra. They provide an API, and VB examples to access it.
The problem is happening with those methods that return and array, as the others work fine. I am using defaultNamedNotOptArg= pythoncom.Missing Is there something else I should check? In a try to workaround this, let me explain that this Xcalibur program comes with another COM library that does the same but with a different API. In this case, makepy.py accesses Filters is a class and its accessed as an attribute of this class: class IXDetectorRead(DispatchBaseClass): """IXDetectorRead Interface""" CLSID = IID('{88536044-BF39-11D2-BD97-0060978EEB9C}') coclass_clsid = IID('{88536045-BF39-11D2-BD97-0060978EEB9C}') ... _prop_map_get_ = { ... "Filters": (1, 2, (9, 0), (), "Filters", None), It works fine in VB, but in Python I get an exception: Traceback (most recent call last): File "<interactive input>", line 1, in <module> File "C:\Python26\lib\site-packages\win32com\client\__init__.py", line 455, in __getattr__ return self._ApplyTypes_(*args) File "C:\Python26\lib\site-packages\win32com\client\__init__.py", line 448, in _ApplyTypes_ dispid, 0, wFlags, retType, argTypes, *args), com_error: (-2147352567, 'Ocurri\xf3 una excepci\xf3n.', (0, None, None, None, 0, -2147473634), None) I have identified -2147352567 = 0x80020009 = DISP_E_EXCEPTION but -2147473634 = 0x8000271C which I don't know what this code means. Is this an Xcalibur-specific error code? In a previous mail I found that one guy solved a similar problem replacing the None of: "Filters": (1, 2, (9, 0), (), "Filters", None), by the CLSID of the Filter's class. So I tried: "Filters": (1, 2, (9, 0), (), "Filters", '{8E2D2225-C0BE-11D2-BD99-0060978EEB9C}'), but the exception is the same. So, I have two libraries to access the data but both crashes for different reasons. I'd appreacite any glue that I could follow. /Enric ----- Mensaje original ---- De: Tim Roberts <t...@probo.com> Para: Python-Win32 List <python-wi...@python.o rg> Enviado: lunes, 15 de diciembre, 2008 21:42:05 Asunto: Re: [python-win32] no array returned in output parameter Enric Jaen wrote: > I am 100 % sure because I have tested it with a VB program and it returns > data. > What are you controlling here? Is this Flash? > As I have seen from previous posts in this mailinglist, the memory is > allocated at the COM side. > Yes, but that should be irrelevant. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32 _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32