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

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


Hi,
 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.
Cheers,
Venkatesh.

-----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
	http://lists.maptools.org/mailman/listinfo/shapelib
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"

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.maptools.org/pipermail/shapelib/attachments/20060610/bb411961/a
ttachment-0001.html

------------------------------

_______________________________________________
Shapelib mailing list
Shapelib at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/shapelib


End of Shapelib Digest, Vol 27, Issue 1
***************************************



More information about the Shapelib mailing list