几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】multiple odinitialize90 assert vers 1.10 (http://www.dimcax.com/hust/showthread.php?t=17285)

yang686526 2009-05-06 06:16 PM

【转帖】multiple odinitialize90 assert vers 1.10
 
multiple odinitialize() assert vers 1.10
multiple odinitialize() assert vers 1.10
hi,
previous in dwgdirect 1.09 version i used the code below every time i exported an autocad file, this worked perfect.
now with dwgdirect 1.10 update 1, i get an assert from the library the second time the odinitialize() function is called.
( acadmodule.cpp line 136, s_pdwgclassmap == 0 )
odrxobjectimpl<exsystemservices> lservices;
odinitialize(&ldxfservices);
oddbdatabaseptr lpdb = lservices.createdatabase();
// fill lpdb database with my graphics
lpdb->writefile( &lfb, lfiletype, loutversion, true );
lpdb.release();
oduninitialize();
should it be possible to use multiple odinitialize/odunitialize ?
or is it just coincident that it worked in 1.09 ?
please advise
erwin
hi,
it's our bug and it's fixed in 1.11
you can just ignore this assert.


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