Hi All, OSG are fantastic but sometimes is frustrating to struggle with them.
I have a crash in my application when I remove a view from a CompositeViewer. The crash happens when I move the mouse over the CompsiteViewer after removing a view. Basically at a certain point I call: viewer->removeView(myview); and "myview" is not released or destroyed since osg::ref_ptr<osgViewer::View> is used elsewhere. Then, I move the mouse over the viewer and I get a crash in CompositeViewer::eventTraversal() when it crashes "masterView" variable is NULL and that seems the reason of the crash. Now, I tried to extract the involved code from my application but the removeView() seems not working and the view is still visible. So, is there something obvious I should do after "viewer->removeView(myview)" in my application so that I don't get a crash? And why in the attached example the removeView does not remove the view from the composite viewer? Regards Gianni ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=57534#57534 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

