Hi Paul,

Good sleuthing, I'll try your code out and see if I can improve on it a bit too...

In J-S's original simple test case I get around 250 Referenced instances that are never deallocated when stopping at breakpoint 2, but sadly can't tell where they come from. Perhaps moving class/libraryName() up into Referenced might help here?

I think those objects could be inspected by creating an atexit() handler, since they actually *are* deallocated at the end of the program (put a breakpoint in the Referenced destructor after breakpoint 2 and you'll see). I imagine they must be static objects or something, but ~250 seems like a lot to me. So getting info about what they are would be instructional if not that useful :-)

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to