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

yang686526 2009-05-07 05:40 PM

【转帖】unhandled Execption... Error With Odsmartptr
 
unhandled execption... error with odsmartptr
unhandled execption... error with odsmartptr
i try to include odreadex sample in a mfc application (vc++6) and i have a
unhandled execption... error when my class try to free memory with odsmartptr
----------------------
odsmartptr<odhatchpatternmanager>::release() line 184 + 10 bytes
odsmartptr<odhatchpatternmanager>::~odsmartp tr<odhatchpatternmanager>() line 175 + 37 bytes
exhostappservices::~exhostappservices() + 68 bytes
myservices::~myservices() + 89 bytes
odrxobjectimpl<myservices>::~odrxobjectimpl& lt;myservices>() + 37 bytes
--------------------------------------------
have you an explication?
thank you

it seems that by the time exhostappservices destructor is called pattern manager object is already destroyed. it may happen if you use your own pattern manager object which is destroyed before exhostappservices object.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 05:33 PM.