<br><font size=2 face="sans-serif">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.</font>
<br>
<br><font size=2 face="sans-serif">Best regards,</font>
<br>
<br><font size=2 face="sans-serif">David Gancarz</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Mahesh Anandan"
<mahesh_anandan@comcast.net></b> </font>
<br><font size=1 face="sans-serif">Sent by: shapelib-bounces@lists.maptools.org</font>
<p><font size=1 face="sans-serif">06/10/2006 04:19 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Shapelib Development <shapelib@lists.maptools.org></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif"><shapelib-admin@lists.maptools.org>,
<shapelib@lists.maptools.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[Shapelib] ShapeLib problem with SHPDestroyObject
Method in .NET        1.1</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="Arial">Hi, </font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">I am using Shapelib to create Polygon, polyline
and point layers. I am using .NET Wrapper available for the shapelib. </font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">My Problem: </font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Courier New">I am creating shape object using the
Following method. </font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New"><b>ShapeLib.SHPObject shapeObject =
ShapeLib.SHPCreateObject.</b></font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New">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. </font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New"><b>ShapeLib.SHPDestroyObject(shapeObject);</b></font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New">Exact error message is: </font><font size=1><b>Object
reference not set to an instance of an object.</b></font>
<br><font size=1> </font>
<br><font size=2 face="Courier New">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.</font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New">Thank you,</font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New">MAHESH ANANDAN</font><font size=2><tt>_______________________________________________<br>
Shapelib mailing list<br>
Shapelib@lists.maptools.org<br>
http://lists.maptools.org/mailman/listinfo/shapelib<br>
</tt></font>
<br>