Ticket #2240 (closed defect: fixed)
Support to run the mapscript c# examples on x64 platform
|Reported by:||tamas||Owned by:||tamas|
When compiling mapscript with VS2005 the default setting does not force the runtime to load the 32 bit version of the .NET framework therefore the application will produce the following error:
System.BadImageFormatException?: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
To solve this issue we might want to add a switch (WIN64) in nmake.opt and use /platform:x86 when this option is not set.
We should also rely on MSVC_VER since VS2003 does not support the /platform compiler option.
We should also exclude this option when MONO is specified since this is a Microsoft specific issue at the moment.
The GDAL C# already uses this approach pretty well.