Platform Target x86 there is a concrete reason?

Apr 23, 2010 at 8:29 AM

Ciao,

there is a real and concrete reason of Platform Target x86 for SharpMap projects?

Under 64bit OS i got an error loading the assembly...   :( 

 

Ciao

Alberto

Coordinator
Apr 23, 2010 at 10:28 AM

Hi Alberto,

can you post a stack trace?

In my -just recently checked out- SharpMap v0.9 solution all Projects are set to AnyCPU. This can impose problems when you use GdalRasterLayer, OgrProvider or SpatiaLite provider since they all rely on native-x86 libraries.

That is the reason why in SharpMap V2 there are specific build targets.

Hth FObermaier

 

Apr 23, 2010 at 10:38 AM

Now i can't post the stack...   the issue is not on my 32bit machine but on a test machine with windows 2008 64bit.

 

Anyway i got the  0x8007000b error during the SharpMap Assembly load...  I got the error from FusionLogVW....    the assembly seems not correct or something like this....

 

After setting "AnyCPU" as Platform it runs again...

 

 

Developer
Apr 23, 2010 at 2:15 PM

The Plaform of the projects is set to Any CPU. The Platform of the solution is a user setting, saved in the .suo, could that be the problem?

Paul

Apr 23, 2010 at 2:47 PM

@ the moment the SharpMap Trunk use x86 Platform? is it right? 

 

Should i use a different tag?  not the trunk?

Developer
Apr 23, 2010 at 7:57 PM

oh I was looking at the solution, the individual projects build to x86. I changed it to Any CPU.