GDAL (x86 vs x64)

Topics: Algorithms, CompactFramework, Español, General Topics, Italiano, SharpMap Project, SharpMap v0.9 / v1.x
Sep 21, 2011 at 11:04 AM

Hi everybody,

I have an project finished. I use C#, Sharpmap, Sharpmap.Extensions with GDAL (FWTools2.4.7) on an operative system Win XP (x86). And the project works correctly!

But now I have another computer with Win XP (x64), and when I try to run it, an error ocurred: "The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception".

¿Someone knows which are the reasons?

Sep 21, 2011 at 1:53 PM

The problem has been solved!

First, I had set the project to target "Any CPU". Second I tried set the project to target "x64". But that actions are incorrect.

To solve the problem, I set the project to target "x86". Althought the second computer has OS (x64) you must configure the project to target "x86". Probably it is necessary for some libraries.

Coordinator
Sep 21, 2011 at 2:42 PM
javiermorata wrote:
To solve the problem, I set the project to target "x86". Althought the second computer has OS (x64) you must configure the project to target "x86". Probably it is necessary for some libraries.

The FWTools GDAL is x86 only!