高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|