Hi, Are you sure you've set the connection of the layer to a proper value? Seems like the SDE driver doesn't check for the NULL values before passing that to msDecryptStringTokens.
Best regards, Tamas 2009/3/6 Murty Maganti <[email protected]> > 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:[email protected]] > *Sent:* Thursday, March 05, 2009 7:10 PM > *To:* Murty Maganti > *Cc:* [email protected] > *Subject:* Re: [mapserver-users] Vista + map script question > > > > > > > 2009/3/6 Murty Maganti <[email protected]> > > > > 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 > > > > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
