几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】exception using inser (http://www.dimcax.com/hust/showthread.php?t=16155)

yang686526 2009-05-05 10:01 AM

【转帖】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


所有的时间均为北京时间。 现在的时间是 08:36 PM.