[Ironpython-users] PINVOKE exception from loaded .NET assembly
issworld2000 at yahoo.com
Tue Nov 17 05:12:55 EST 2015
Thank you for the reply.
How can I access the inner exception in ironpython?
I tried this:
import OSGeo.GDAL as gdalc
except System.Exception as e:
But it raises the same message:
The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception.
So this is not an inner exception?
From: Markus Schaber <m.schaber at codesys.com>
To: Djordje Spasic <issworld2000 at yahoo.com>
Sent: Tuesday, November 17, 2015 7:57 AM
Subject: RE: [Ironpython-users] PINVOKE exception from loaded .NET assembly
> I am trying call a method from loaded .NET assembly in python, but for some reason, I am getting a PINVOKE exception. Is there some way to print what is the reason for that exception?
Maybe you could try to access the inner exception?
CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions
3S-Smart Software Solutions GmbH
Dipl.-Inf. Markus Schaber | Product Development Core Technology
Memminger Str. 151 | 87439 Kempten | Germany
Tel. +49-831-54031-979 | Fax +49-831-54031-50
E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com
CODESYS forum: forum.codesys.com
Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received
this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure
or distribution of the material in this e-mail is strictly forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users