[Shapelib] ShapeLib problem with SHPDestroyObject Method in
.NET 1.1
David.Gancarz at ci.orlando.fl.us
David.Gancarz at ci.orlando.fl.us
Mon Jun 12 08:36:37 EDT 2006
Mahesh: I just saw you message this Monday morning. The problem you are
having is a bug in the .Net wrapper. I fixed it long ago but have never
been able to get the new version posted to the shapelib site. I am
sending the correct version to you by private message.
Best regards,
David Gancarz
"Mahesh Anandan" <mahesh_anandan at comcast.net>
Sent by: shapelib-bounces at lists.maptools.org
06/10/2006 04:19 AM
Please respond to
Shapelib Development <shapelib at lists.maptools.org>
To
<shapelib-admin at lists.maptools.org>, <shapelib at lists.maptools.org>
cc
Subject
[Shapelib] ShapeLib problem with SHPDestroyObject Method in .NET 1.1
Hi,
I am using Shapelib to create Polygon, polyline and point layers. I am
using .NET Wrapper available for the shapelib.
My Problem:
I am creating shape object using the Following method.
ShapeLib.SHPObject shapeObject = ShapeLib.SHPCreateObject.
After writing the shape returned by the create object method, I destroy
the object. I am consistently getting Access Violation error when calling
the following method.
ShapeLib.SHPDestroyObject(shapeObject);
Exact error message is: Object reference not set to an instance of an
object.
For now, I am checking for shapeObject != null and also wrapped this in a
try catch block. It did not make any difference. I am fighting with this
problem for the last 3 weeks. Appreciate your response at the earliest.
Thank you,
MAHESH ANANDAN_______________________________________________
Shapelib mailing list
Shapelib at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/shapelib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/shapelib/attachments/20060612/ae1878fd/attachment.html
More information about the Shapelib
mailing list