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

invalid id by oddbviewport::getfrozenlayerlist
invalid id by oddbviewport::getfrozenlayerlist
hi,
read attachment file.
exception error.
text havigng annotation scales.
code:
oddbviewport pent;
...
oddbobjectidarray ary;
pent->getfrozenlayerlist( ary );
for( int i=0; i<ary.size(); i++ )
{
oddbobjectid id = ary.getat(i);
if( !id.isnull() )
{
oddblayertablerecordptr play = id.safeopenobject(); // exception error!!
...
}
}thanks.
attached files
there is a bug in 2.5.1 with frozzen layers list.
the workaround is to check if the layer id is erased.
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)