高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|