[gdal-dev] C# ogr_wrap.dll exception with ogr.OGRERR_NONE

Tamas Szekeres szekerest at gmail.com
Fri Apr 5 02:34:09 PDT 2013


Hi,

Make sure all the dependent dll-s like ogr_wrap.dll, gdal19.dll proj.dll
... are available in the appllication directory or the location added in
the PATH environment variable.

Best regards,

Tamas



2013/4/5 Casper Børgesen (CABO) <CABO at niras.dk>

>  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****
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130405/54848666/attachment.html>


More information about the gdal-dev mailing list