高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】exception in odrecomputedimblockmoduleuninitapp90
exception in odrecomputedimblockmodule::uninitapp()
exception in odrecomputedimblockmodule::uninitapp()
hello forum,
since i have changed my dwgdirect version from 2.4.1 to 2.6.1, i get a system.accessviolationexception in odrecomputedimblockmodule::uninitapp() when calling oduninitialize().
this happens only if oddbdimension::recomputedimblock(true) has been called at least one time.
any idea of what could cause this problem ?
quote:
originally posted by jerome roche
hello forum,
since i have changed my dwgdirect version from 2.4.1 to 2.6.1, i get a system.accessviolationexception in odrecomputedimblockmodule::uninitapp() when calling oduninitialize().
this happens only if oddbdimension::recomputedimblock(true) has been called at least one time.
any idea of what could cause this problem ?
do you use static or dynamic libraries?
vladimir
i link with static libraries. i use dd_vc9md_dummyrecomputedimblock.lib.
there is a bug in extensions\dummyrecomputedimblock\dummyrecomputedi mblockmodule.cpp
to fix it, add
code:
oddbdimension::desc()->module()->addref();to void odrecomputedimblockmodule::initapp()
and
code:
oddbdimension::desc()->module()->release();to void odrecomputedimblockmodule::uninitapp(),
and rebuild the library.
look at \extensions\recomputedimblock\odrecomputedimblockm odule.cpp as a reference.
vladimir
it solves the issue. thank you !
|