![]() |
【转帖】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. |