查看单个帖子
旧 2009-05-07, 04:06 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】smart Pointers And Detecting Sources Of Memory Leaks

smart pointers and detecting sources of memory leaks
smart pointers and detecting sources of memory leaks
hi,
i get memory leaks in my application. i going to check if it is caused by smart pointers with too big reference count at the end of program. is there possibility to dump all objects handled by smart pointers with their reference count at some moment in program? or to trace creating/deleting objects by smart pointer implementation?
another question - have this smart pointers a cycle-references vulnerability?
is it possible to create incidently a cycle of referenced objects in this library?
tia
michal sliwka
it's possible to create cycle of referenced objects using smart pointers. if 2 objects reference each other with smart pointers they will not be deleted.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)