几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】smart Pointers And Detecting Sources Of Memory Leaks (http://www.dimcax.com/hust/showthread.php?t=18618)

yang686526 2009-05-07 04:06 PM

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


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