几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】need help with an asser (http://www.dimcax.com/hust/showthread.php?t=17306)

yang686526 2009-05-06 06:23 PM

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


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