Problem with Mapscript C# on Windows XP 64-bits!

Tamas Szekeres szekerest at GMAIL.COM
Fri Aug 17 14:55:57 EDT 2007


This problem also applies to the mapscript c# examples so I've
committed a fix to use /platform:x86 with MSVC80 by default if WIN64
is not specified in nmake.opt.

For more information see:
http://trac.osgeo.org/mapserver/ticket/2240

The corresponding tests have been added to the mapserver buildbot configuration
http://buildbot.osgeo.org:8504/

Best regards,

Tamas


2007/8/17, Tamas Szekeres <szekerest at gmail.com>:
> Paul,
>
> Your application probably runs against the 64 bit version of the .NET runtime.
> If you compile code to produce a Win32 image on a Win64 platform the default
> options does not force to use the 32 bit version of the framework.
> Therefore you might want to add '/platform:x86' to your csc command
> line when compiling the
> your application. (if not specified the default option is /platform:any)
>
> In the Visual Studio IDE you can change the "Platform target" to x86
> in the application settings Build configuration page.
>
>
> Best regards,
>
> Tamas Szekeres
>
>
> 2007/8/17, Paul james <pauljame at gmail.com>:
> > Hello people!
> > I´m trying to make my app run on WIN XP 64 bits...
> > I used the same dlls from my 32 bits environment  ...
> >
> > I got this exception on
> > mapaObj = new mapObj(path);
> >
> > An attempt was made to load a program with an incorrect format. (Exception
> > from HRESULT: 0x8007000B) Description: An unhandled exception occurred
> > during the execution of the current web request. Please review the stack
> > trace for more information about the error and where it originated in the
> > code.
> >
> > Exception Details: System.BadImageFormatException: An attempt was made to
> > load a program with an incorrect format. (Exception from HRESULT:
> > 0x8007000B)
> >
> > [BadImageFormatException: An attempt was made to load a program with an
> > incorrect format. (Exception from HRESULT: 0x8007000B)]
> > SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_mapscript(ExceptionDelegate
> > applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate
> > divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate,
> > ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate,
> > ExceptionDelegate nullReferenceDelegate, ExceptionDelegate
> > outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate
> > systemExceptionDelegate) +0 SWIGExceptionHelper..cctor() +1049
> >
> >
> > Any solutions?
> >
> > []´s
> >
>



More information about the mapserver-users mailing list