查看单个帖子
旧 2009-05-06, 06:23 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】need help with an asser

need help with an assert
need help with an assert
i've embedded dwgdirect into a com object that my application uses, and everything is fine the first time i create one, fill it with elements, write it out, and get rid of it. the second time i create an instance while the program is running, however, i am getting this assert when calling odinitialize:
assertion failed!
program: c:\alpsrc\ais\debug\ais.exe
file: source\database\acadmodule.cpp
line: 136
expression: s_pdwgclassmap == 0
i did not have this problem back when i was using opendwg in the com object. i'm calling odinitialize in the object constructor, and oduninitialize in the object destructor.
found the problem
i searched through the discussion threads again, and came upon a similar problem. it indicated it was fixed in dwgdirect 1.11, and it does, in fact, appear to work now.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)