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

first-chance exception
first-chance exception
hi,
i am writing my own dwgviewer application based on odamfcapp. while closing my application i got one exception.
first-chance exception at 0x7c812aeb in dwgviewer.exe: microsoft c++ exception: oderror at memory location 0x0012ece4..
any chance to remove this exception
thanks
rajeev
use oderror::description() to the text description of the exception.
before closing the application you should
1. be sure that all oddb* objects are destroyed. smart pointers pointing to them prevent the objects from being destroyed. smart pointers should go out of scope or should be set to null value. in that case their destructors or assignment operators will release the oddb* objects).
2. call oduninitialize().
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)