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