Hi Gordon, i cant place a break point into osg::Referenced class. if i put i get every classes which are referenced. and since the compile time, i can not know the address of my geometry i cant add such an if. anyway it is the whole rebuild of osg library.
if i venture this, i do the method that ismail has told before... it seems a better idea.. On Wed, Aug 19, 2009 at 4:30 PM, Tomlinson, Gordon < [email protected]> wrote: > > > 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 > > -- Ufuk
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

