[gdal-dev] C# ogr_wrap.dll exception with ogr.OGRERR_NONE
Casper Børgesen (CABO)
CABO at NIRAS.DK
Fri Apr 5 01:29:01 PDT 2013
Maybe I should state that I'm using GDAL 1.9.2 with VS2010.
From: gdal-dev-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Casper Børgesen (CABO)
Sent: 5. april 2013 10:07
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] C# ogr_wrap.dll exception with ogr.OGRERR_NONE
I am experiencing some problems with C# and GDAL/OGR.
I have a program where I just initialize GDAL/OGR with this command:
OSGeo.OGR.Ogr.AllRegister();
// Here follows some IO and data processing, and its working just fine.
Now I add a simple line to my program:
OSGeo.OGR.Ogr.AllRegister();
var a = OSGeo.OGR.Ogr.OGRERR_NONE
// Here follows some IO and data processing, and it used to be working.
The type initializer for 'OSGeo.OGR.Ogr' threw an exception.
...The type initializer for 'OSGeo.OGR.OgrPINVOKE' threw an exception.
...... The type initializer for 'SWIGExceptionHelper' threw an exception.
......... Unable to load DLL 'ogr_wrap': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Can anyone push me in the right direction so I can determine why using Ogr.OGRERR_NONE would break my program?
Regards Casper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130405/43564f5b/attachment.html>
More information about the gdal-dev
mailing list