Mapscript C# - memory problem with GetShape

Sylvain Beorchia sbeorchia at GI-LEMANS.COM
Wed Aug 9 11:05:27 EDT 2006


Hi, 

I use the method layer.getShape(shape, tileIndex, result.shapeindex) and I've got a sporadic error wich throws this AccessViolationException : "Attempted to read or write protected memory. This is often an indication that other memory is corrupt
The StackTrace is : 
à mapscriptPINVOKE.layerObj_getShape(HandleRef jarg1, HandleRef jarg2, Int32 jarg3, Int32 jarg4)

à layerObj.getShape(shapeObj shape, Int32 tileindex, Int32 shapeindex)

à DI_DIFILE.DrawImg(Int32 Maprange, Int32 Mapsize, String Layer, String LayerIDValue, String Mapfile, String LayerID) 



Do you have an idea to fix this bug ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060809/47b0d23b/attachment.html


More information about the mapserver-users mailing list