[Shapelib] RE: Shapelib Digest, Vol 27, Issue 1

venkatesh venkatesh at amogha.com
Mon Jun 12 07:56:16 EDT 2006

 I didn't get your question exactly? Have you tested whether your program
can access information from shape files or not? You written that your trying
to draw polygon, poly line etc but from where you r getting?

I think, the error msg that you given is not related to code it's related to
.NET environment. Initially I also got same error. You can resolve it by
registering the Adodb.dll file in the global assembly cache.

Hope it helps you.

-----Original Message-----
From: shapelib-bounces at lists.maptools.org
[mailto:shapelib-bounces at lists.maptools.org] On Behalf Of
shapelib-request at lists.maptools.org
Sent: Saturday, June 10, 2006 9:33 PM
To: shapelib at lists.maptools.org
Subject: Shapelib Digest, Vol 27, Issue 1

Send Shapelib mailing list submissions to
	shapelib at lists.maptools.org

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
	shapelib-request at lists.maptools.org

You can reach the person managing the list at
	shapelib-owner at lists.maptools.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Shapelib digest..."

Today's Topics:

   1. ShapeLib problem with SHPDestroyObject Method in .NET	1.1 
      (Mahesh Anandan)


Message: 1
Date: Sat, 10 Jun 2006 02:19:47 -0600
From: "Mahesh Anandan" <mahesh_anandan at comcast.net>
Subject: [Shapelib] ShapeLib problem with SHPDestroyObject Method in
	.NET	1.1 
To: <shapelib-admin at lists.maptools.org>, <shapelib at lists.maptools.org>
Message-ID: <200606100821.k5A8L7Nt007463 at duke.maptools.org>
Content-Type: text/plain; charset="us-ascii"



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. 




Exact error message is: Object reference not set to an instance of an


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,



-------------- next part --------------
An HTML attachment was scrubbed...


Shapelib mailing list
Shapelib at lists.maptools.org

End of Shapelib Digest, Vol 27, Issue 1

More information about the Shapelib mailing list