Problem with Mapserver 4.4.1 compiled with Visual Studio .NET

Brent Fraser bfraser at GEOANALYTIC.COM
Tue Mar 1 15:21:43 EST 2005


David,

 This is more of a problem report too (any other VS .NET mapserver
developers out there?)

I can't get the mapserver package at
http://mapserver.gis.umn.edu/win32bin/ms441pg.zip to work either (after
following the instructions included with the package).  Even a simple:
    shp2img -m C:\inetpub\wwwroot\workshop\itasca.map
will cause a crash.  The workshop demo will not work at all with the
packaged mapserv.exe (it will crash right away).


  On the up-side, I successfully compiled MapServer with Visual Studio .NET
(VC 7.1) and ran the workshop demo.  Of the five options that the workshop's
index.html gives, all worked except for the "-Adds frames" option, which
caused mapserv.exe to crash after it had rendered the map, legend and
reference graphics, right after generating the html:

<input type="hidden" name="imgxy" value="300.0 300.0">

but before it could generate:

<input type="hidden" name="imgext" value="388107.634400 5200287.742790
500896.339020 5313076.447409">

In this test I was using IE 6.0 and Win2k with all the current updates
applied.  However, using IE 6 from another Win2k computer (no updates
applied) worked fine!  I then applied the IE  and Win2k updates and got the
same problem.  So I expect this is related to IE 6 / Win2k updates coupled
with using frames and/or javascript.

Brent Fraser



----- Original Message -----
From: "David Ratcliffe" <rati at POST.COM>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Monday, February 28, 2005 7:17 PM
Subject: [UMN_MAPSERVER-USERS] Problem with Mapserver 4.4.1 compiled with
Visual Studio .NET


This post is more of a report than a question, as I seem to have solved
the problem.

I've recently been trying to get Mapserver version 4 .4.1 up and running
with Tomcat 5.

I started off by using the latest versions of the Win32 binaries as linked
from the Mapserver website. On nearly every occasion (once a query string
was passed), mapserv.exe terminated with the error:

The instruction at '0x77f88216' referenced memory at '0x00000010'. The
memory could not be "written".

I then tried compiling the version 4.4.1 source using Visual Studio .NET.
I encountered exactly the same problem.

Debugging mapserv.exe usually brought me to a call to 'rewind' in the
function 'int msAddImageSymbol(symbolSetObj *symbolset, char *filename)',
defined within mapsymbol.c on line 488 (of version 4.4.1 of the source).
However, surely the problem can't be there... I can't see a problem with
the code at that location. I believe it is more likely that there is a
problem with Visual Studio .NET 2003, because when I tried again,
compiling everything with Visual Studio (NOT the .NET version), everything
worked first time without any problems.

Have the Win32 binaries linked from the Mapserver website been compiled
using Visual Studio .NET? They're simply not working on my system.

Here's my setup:

OS: Windows XP Professional with SP2
Web Server: Apache Tomcat/5.0.28
Mapserver Version: 4.4.1 (Source with only the required libs)
DE: Microsoft Visual Studio 6 (previously Microsoft Visual Studio .NET
2003)

-David



More information about the mapserver-users mailing list