[gdal-dev] Need solution for C# exception: OSGeo.OGR.OgrPINVOKE
Genhan Chen
GChen at camsys.com
Thu Jun 27 18:02:54 PDT 2013
I am using ogr_csharp.dll in my c# program. See the following code
snippet:
using OSGeo.OGR;
namespace Test
{
public class Test
{
public Test()
{
...
Ogr.RegisterAll();
}
}
}
Then the following exception message was thrown out when the program is
executed:
{"The type initializer for 'OSGeo.OGR.OgrPINVOKE' threw an exception."}
System.Exception {System.TypeInitializationException}
Does anyone know how to resolve this issue?
Many thanks,
Genhan Chen
Cambridge Systematics, Inc.
555 12th Street, Suite 1600
Oakland CA 94607
tel 510 873 8700
fax 510 873 8701
e-mail gchen at camsys.com
www.camsys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130627/4d49e92a/attachment.html>
More information about the gdal-dev
mailing list