查看单个帖子
旧 2009-05-06, 11:20 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】problem with iterator seek90 method

problem with iterator seek() method
problem with iterator seek() method
it's complex :
in my class, i have a public variable oddbobjectid idbloc_current;
this variable is correctly initialised (i have verified the autocad handle of idbloc_current),
in a function, i have this code :
oddbblocktableptr ptableblock = getblocktableid().safeopenobject();
oddbsymboltableiteratorptr pitertableblock = ptableblock->newiterator();
pitertableblock->seek(idbloc_current); // crash
if i use the nex code, it's ok
for (pitertableblock->start(); ! pitertableblock->done(); pitertableblock->step())
{
if (pitertableblock->getrecordid() == idbloc_current)
break;
}
help me !!!
thanks,
laurent
looks like the implementation for this seek method is not completed yet. i've noted this for the engineers to look at.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)