[mapserver-users] Vista + map script question
Murty Maganti
MMaganti at oriongis.com
Fri Mar 6 08:19:42 PST 2009
Hi
I could compile from the SDK but have a small issue using the compiled
binaries. Getting the following error while loading SDE layer
First-chance exception at 0x7855b66c (msvcr90.dll) in
WindowsFormsApplication1.exe: 0xC0000005: Access violation reading
location 0x00000001.
A first chance exception of type 'System.AccessViolationException'
occurred in mapscript_csharp.dll
An unhandled exception of type 'System.AccessViolationException'
occurred in mapscript_csharp.dll
Additional information: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.
And it is happening on this line below
char *msDecryptStringTokens(mapObj *map, const char *in)
{
char *outbuf, *out;
if (map == NULL)
{
msSetError(MS_MISCERR, "NULL MapObj.", "msLoadEncryptionKey()");
return NULL;
}
/* Start with a copy of the string. Decryption can only result in
* a string with the same or shorter length */
=> if ((outbuf = (char *)malloc((strlen(in)+1)*sizeof(char))) ==
NULL)
{
Any clue on what I could be doing wrong here.
Thanks
Murty
From: Tamas Szekeres [mailto:szekerest at gmail.com]
Sent: Thursday, March 05, 2009 7:10 PM
To: Murty Maganti
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Vista + map script question
2009/3/6 Murty Maganti <MMaganti at oriongis.com>
Just a quick one. How can I compile only the mapscript_csharp assembly.
Is there any VS project file available.
Hi,
Just download the most sufficient -dev package
(http://vbkto.dyndns.org:1280/sdk/index.html) for your compiler version
and issue:
nmake ms
nmake ms-csharp
in the Visual Studio Command Prompt.
Best regards,
Tamas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090306/9566e5c0/attachment.htm>
More information about the MapServer-users
mailing list