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

yang686526 2009-05-05 09:59 AM

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


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