Hi,
I think I also encountered this or a similar problem after the main program was 
trying to exit
eventually I ended up with a "shutdown" method containing the following


Code:

        if(!viewer->done())
        {
                viewer->setDone(true);
        }
        
        // avoid circular references
        viewer->getCamera()->setFinalDrawCallback(NULL);
        if (!offScreen) {
                osgViewer::View::EventHandlers eventHandlers = 
viewer->getEventHandlers();
                eventHandlers.clear();
        }

        osgViewer::ViewerBase::Windows wins;
        viewer->getWindows(wins);
        for(int i=wins.size()-1; i>=0; i--)
        {
                wins.at(i)->close();
        }




Not sure it's the right way but some/all of it may solve out the error
try using it in renderManager's destructor
Good luck

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=60261#60261





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to