Opened 17 years ago

Closed 17 years ago

#2240 closed defect (fixed)

Support to run the mapscript c# examples on x64 platform

Reported by: tamas Owned by: tamas
Priority: normal Milestone: 5.0 release
Component: MapScript-C# Version: 5.0
Severity: normal Keywords:
Cc:

Description

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.

Change History (1)

comment:1 by tamas, 17 years ago

Resolution: fixed
Status: newclosed

Committed to the SVN trunk

Note: See TracTickets for help on using tickets.