<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
I'm using mapscript c# to add a point shapefile layer dynamically to an
existing map. When I do a select by Rect/Shape I get results, but
calling map.drawQuery() gives me the ol' "Attempted to read or write
protected memory" error. I can retrieve the shape and read the values,
so the queryByShape/Rect is working.<br>
<br>
Is this a known issue or just not supported for dynamic layers? (BTW I
get the same when I try it on a SQL Server Layer using the plugin dll).
<span class="ul-threaded" style="margin: 0.5em 0pt 0pt -20px;"><span
class="text-cell">* I'm using dlls from build (MSVC2008 (Win32)
-stable release-1500-gdal-1-6-mapserver-5-6.zip).<br>
<br>
Adding shapefile snippet:<br>
layerObj layer = new layerObj(Map);<br>
layer.connectiontype = MS_CONNECTION_TYPE.MS_SHAPEFILE;<br>
layer.type = MS_LAYER_TYPE.MS_LAYER_POINT;<br>
layer.data = tagFilename;<br>
layer.status = mapscript.MS_ON; <br>
layer.name = LayerName; etc.<br>
<br>
Any help appreciated.<br>
<br>
Will<br>
</span></span>
</body>
</html>