[python-win32] Python crash after win32com.client.CastTo?

Mark Hammond mhammond at skippinet.com.au
Thu Mar 24 03:27:15 CET 2005


> > 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)?
> >
>
> The generated function declaration indicates they are both out
> (PyOleMissing object type), but who knows what the library internally
> expects...
>
>  >>> help(theWF2.GetScanDescription2)
> Help on method GetScanDescription2 in module
> win32com.gen_py.5F259202-611C-11D1-A9C6-0060977F5C78x0x1x0:
>
> GetScanDescription2(self, sample=<PyOleEmpty object>,
> period=<PyOleEmpty
> object>, experiment=<PyOleEmpty object>, cycle=<PyOleEmpty object>,
> forChromatogram=<PyOleEmpty object>, scanDescription=<PyOleMissing
> object>, fixedMass=<PyOleMissing object>) method of
> win32com.gen_py.5F259202-611C-11D1-A9C6-0060977F5C78x0x1x0.IFM
> ANWiffFile2
> instance
>      method GetScanDescription2

Try passing explicit args for every arg, or substituting pythoncom.Missing
instead of pythoncom.Empty.

Mark



More information about the Python-win32 mailing list