err one way you could put a break point in the reference pointer class where the ref count gets increased you can make this a conditional with some like if the THIS pointer = the address of the object your looking at etc
Gordon Product Manager 3d __________________________________________________________ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __________________________________________________________ ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Ufuk Sent: Wednesday, August 19, 2009 7:50 AM To: OpenSceneGraph Users Subject: [osg-users] Reference count catcher? i have an osg::Geometry. i store it in a class with ref_ptr when i delete it, i expect it to be deleted. in debug, i saw that the reference count is 2 before this destructor. even if i set this value to null, there reference count remains 1. so it is not deleting... what i want to ask is, how can i find who stores reference of my geometry. someone stores and increments the reference count without my information... do you know a way of doing this? i just want to be informed when my geometry reference count is increased so that i can find the memory leak in my project. -- Ufuk
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

