That worked perfectly and saved my day.
Thank you Markus!
Kind regards,
Djordje
From: Markus Schaber
To: Djordje Spasic ; "ironpython-users@python.org"
Sent: Tuesday, November 17, 2015 11:52 AM
Subject: RE: [Ironpython-users] PINVOKE exception from loaded .NE
material in this e-mail is strictly forbidden.
From: Djordje Spasic [mailto:issworld2...@yahoo.com]
Sent: Tuesday, November 17, 2015 11:46 AM
To: Markus Schaber; ironpython-users@python.org
Subject: Re: [Ironpython-users] PINVOKE exception from loaded .NET assembly
Thank you.
I am not a prog
sers@python.org
Subject: Re: [Ironpython-users] PINVOKE exception from loaded .NET assembly
Hi Markus,
Thank you for the reply.
How can I access the inner exception in ironpython?
I tried this:
import clr
clr.AddReferenceToFileAndPath("c:/gdal/gdal2bb/gdal_csharp.dll")
import OSGeo
t.
From: Markus Schaber
To: Djordje Spasic ; "ironpython-users@python.org"
Sent: Tuesday, November 17, 2015 11:31 AM
Subject: RE: [Ironpython-users] PINVOKE exception from loaded .NET assembly
#yiv9011599688 #yiv9011599688 -- _filtered #yiv9011599688
{font-family:Helvetica;
essage
But it raises the same message:
The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception.
So this is not an inner exception?
Regards,
Djordje
From: Markus Schaber
To: Djordje Spasic
Sent: Tuesday, November 17, 2015 7:57 AM
Subject: RE: [Ironpython-users] PI
Hello to IronPython community,
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?
This is the code:
import clr
clr.AddReferenceToFileAndPath("c:/gdal/gdal2bb/gdal