Hi Chris, The OSG in general doesn't suffer from memory leaks, as memory is pretty reliably managed by osg::ref_ptr<>/osg::Referenced support for ref counting.
You usage model isn't clear to me, and I don't know what OS, version of the OSG, version of the viewer classes that you are using, or what tools you are using which indicate that memory usage is growing. Robert. On 4/25/07, Chris and Heather Kosek <[EMAIL PROTECTED]> wrote:
Hello, I noticed when I call the osgpick example from a driver the memory used does not go away until the process goes away and not when the viewer goes away. The memory usage grows by ~80 mb each time I call osgpick. There seems to be no cleanup when the viewer closes. Can I use osg in this manner? I am trying to use OpenSceneGraph in the following manner; 1. Calling it from another routine (works) 2. Passing it an model filename (works) 3 Displaying the building model in the viewer (works) 4. Getting the x,y,z intersect of a point the wall of the building (works) 5. Placing a model at and x,y,z with the model having the proper facing based on the normal (works) 6. Return the position and normal information to the calling routine (works) 7. Calling routine with x,y & z information of model to place (works) 8. Not having memory usage grow each time I call the routine. ( My problem). Thank you, Chris Kosek ________________________________ Don't quit your job – Take Classes Online and Earn your Degree in 1 year. Start Today! _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
