Hi all,<br>I am trying to write an intersection-tool with Delphi using
ShapeLib 1.2.10. Everything works proper with small shapes but when I
try to intersect bigger shapes, after some time an access-violation
message occurs when I try to read a shape using the
SHPReadObject()-method. <br>
Possibly the problem is that I am not using SHPDestroyObject(). It causes an error-message the first time I access it.<br><br>The following code works fine:<br> pSHPStr := SHPReadObject(hSHPHandleStr,i);<br><div id=":11q">
SHPDestroyObject(pSHPStr);<br>
<br>This code causes an cpu-error-message in my Delphi IDE:<br> pSHPStr := SHPReadObject(hSHPHandleStr,i);<br> aXIn := pSHPStr.padfX; //Array of nVertices X coordinates;<br>
aYIn := pSHPStr.padfY; //Array of nVertices Y coordinates;<br> SHPDestroyObject(pSHPStr);<br><br>Do you have any ideas what the problem could be? Thanks a lot!<br><font color="#888888">Mario Härtwig</font></div>