On Mon, 21 Mar 2005 09:46:26 -0500, Nathan Edwards <[EMAIL PROTECTED]> wrote:

I'm going out of my mind here, trying to figure out if
a) I'm screwing up,
b) Python's COM extensions are screwing up, or
c) the Type Library I'm using is screwing up.

...   Call theWF2.GetScanDescription2(1, 0, 382, 1, 0, ScanDesc, fixedMass)

I've used makepy to ensure static binding, and translated to this snippet as follows:

        from win32com.client import Dispatch, CastTo
        theFMANSpecData = Dispatch('Analyst.FMANSpecData')
        theFMANSpecData.WiffFileName = wiffFilename
        theWF = theFMANSpecData.GetWiffFileObject()
        theWF2 = CastTo(theWF,'IFMANWiffFile2')

        ...

        ScanDesc, fixedMass = theWF2.GetScanDescription2(1,0,382,1,0)

I've used many of the other elements of the Analyst application's typelibs - they have all worked fine. This is the only case where a non-default interface to a class is required.

When the python interpreter hits the call to GetScanDescription2, it exits immediately, no exception, no error message, no nothing. Exit status 5 (cygwin shell), %errorlevel% -1073741819 from cmd.exe prompt.



For what it's worth, -1073741819 is hex C0000005, which is STATUS_ACCESS_VIOLATION: a general protection fault. That's usually a wild address or a null pointer dereference. Is it possible that one of those last two parameters is actually (in,out) and not just (out)?


--
- Tim Roberts, [EMAIL PROTECTED]
 Providenza & Boekelheide, Inc.

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to