[gdal-dev] GDAL / OGR 64bit - PINVOKE Exception

2011-04-19 Thread Jordan Stoffer
From: Jordan Stoffer Sent: Tuesday, April 19, 2011 4:38 PM To: Jay Jennings Cc: gdal-dev@lists.osgeo.org Subject: RE: GDAL / OGR 64bit - PINVOKE Exception Here is an example of the code we are using. It is a very simple example and breaks as soon as we try to register the GDAL driver

[gdal-dev] RE: GDAL / OGR 64bit - PINVOKE Exception

2011-04-19 Thread Jordan Stoffer
, 2011 2:06 PM To: Jordan Stoffer Subject: RE: GDAL / OGR 64bit - PINVOKE Exception I have the same setup as you (64-bit Win7, VS2010) and when I had that same msg (albeit with GDAL, not OGR), the fix was to go to the Properties page of the executable, Build tab, and set "Platform Target&quo

[gdal-dev] GDAL / OGR 64bit - PINVOKE Exception

2011-04-19 Thread Jordan Stoffer
Hello, I am getting the message "The type initializer for 'OSGeo.OGR.OgrPINVOKE' threw an exception." in my C# program that is referencing the ogr_csharp.dll file. When trying to instantiate a class that is extended from the OGR.Geometry class . After doing some research it appears that the is