高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】endless loop when iterating diametric dimension block
endless loop when iterating diametric dimension block
endless loop when iterating diametric dimension block
it seems to me that an endless loop comes when i try to explode a block of a diametric dimension.
here is a sample code.
[code]
oddbblocktablerecordptr pblock = m_iddimblock.safeopenobject();
oddbobjectiteratorptr piter = pblock->newiterator();
for ( ; !piter->done(); piter->step() )
{
oddbentityptr pent = piter->entity();
try {
// some work with the current entity
} catch(oderror& err) {
// report some error
} //catch
} //for
</pre><hr></blockquote>
the problem occurs when an mtext entity becomes the current one.
the same problem seems to be in the old odt toolkit.
does smo knows a way for avoiding this?
thanks in advance
regards
chudomir
best regards
chudomir
hello,
i tested a sample code and have not found anything wrong. perhaps the trouble is caused by work with the current entity.
regards,
sergey vishnevetsky
hi, thanks for reply.
you're right - the problem was lying not in the iterators - it was exactly in my code, sorry for disturbance!
best regards
chudomir
|