阅读:1361回复:1
[求助]为什么调用feature.parts.item[1].count出错?
我想获得一个图层内所有线图元的两个端点坐标,可是通过如下代码就会报错
lyr:=m_dt.Layers.Item['fdxl']; for i_for:=1 to lyr.AllFeatures.Count do begin ftr:=lyr.AllFeatures.Item[i_for]; showmessage(inttostr(ftr.Parts.Item[1].Count)); end; 报如下错误,Project dt.exe raised exception class EaccessViolation with message 'Access violation at address 01563CFD in module 'daengine.dll',Write of address 00000001'。 请问这是由于什么原因造成的?一共有22个线图元,可是弹出两个对话框就报错了,这是为什么呢?应该怎么样解决这个问题呢? |
|
|
1楼#
发布于:2005-05-12 17:17
你可以换一个版本的MAPX试试!
|
|