查看单个帖子
旧 2009-05-06, 06:16 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)