Hi Fredrik, Good detective work. I'd be afraid that adding this osg::Referenced::getGlobalReferencedMutex(); would not be a general solution, and a little reordering by the compiler could easily cause some other static created object to then break the destruction. I'd therefore like to look a bit further for a solution, I don't yet know what this might be, suggestions welcome.
Cheers, Robert. On Sat, May 23, 2009 at 7:13 PM, Fredrik Orderud <[email protected]> wrote: > Oooops.... Please disregard the suggestion in my previous posting. What I > meant to suggest was: > -- > static RenderBinPrototypeList* renderBinPrototypeList() > { > osg::Referenced::getGlobalReferencedMutex(); > static osg::ref_ptr<RenderBinPrototypeList> s_renderBinPrototypeList = new > RenderBinPrototypeList; > return s_renderBinPrototypeList.get(); > } > -- > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=12838#12838 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

