查看单个帖子
旧 2009-05-04, 03:31 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】access violation on oddb3dpolyline

access violation on oddb3dpolyline
access violation on oddb3dpolyline
hi,
i am trying to access vertices in a oddb3dpolyline but getting access violation. here is how i am trying to use:
oddb3dpolylineptr ppline = id.safeopenobject();
oddbobjectiteratorptr it = ppline->vertexiterator();
it->start();
oddb3dpolylinevertexptr vert = ppline->openvertex(it->objectid(), oddb::kforread);
it gives me access violation on the last line. i don't know what am i missing here.
thanks for your help.
may it happen that you attempt to open more vertices than polyline has? how do you check for end?
are erasing/replacing/modifying vertices?
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)