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

exception using insert
exception using insert
hi
i'm trying to insert a block loaded with readfile into an oddbdatabase using the function insert(<block name>, <oddbdatabase>), but i have an exception. i use armv4 libraries version 2.2.0.
any ideas what may cause the exception.
thanks
oddbdatabase::insert(const odstring &, oddbdatabase*) function inserts the contents on one database's model space into another as a block with specified name.
if this is what you expected than what kind of exception you get (exception->description())?
sergey slezkin
i'm not able to catch it in my code, i saw it in the debug window. when i trace in assembler, it seems to be in the xlatowner function of oddbclone.
thanks
does it happen while inserting any database (dwg) or only with some specific one?
sergey slezkin
i've tried somes with same results
thanks
i have convert my project in visual studio 2003, so i can trace it faster.
here the stack when i got the exception oderror_duplicaterecordname
oddbsymboltable::add() + 0x122
oddbtextstyletable::add() + 0x12e
oddbsymboltablerecord_appendtoowner() + 0x3b
oddbsymboltablerecord::appendtoowner() + 0x86
oddbclone::xlateowners() + 0x186
oddbclone::xlateobjects() + 0x24
insert() + 0x2de
insert() + 0x1a1
oddbdatabase::insert() + 0x69
thanks
but this exception should be handled by dwgdirect. it's normal situation if so.
sergey slezkin
ok
thanks
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)