Hi Fredrik, I haven't seen reports of problems relating to renderbin destruction before. Perhaps you use of a static build of the OSG/OT is what is uncovering the issue. It seems odd that a dependent library would be destructed after objects in the core. What happens on the release build? Have you tried any other compilers?
Robert. On Thu, May 21, 2009 at 1:25 AM, Fredrik Orderud <fredrik.orde...@idi.ntnu.no> wrote: > There seems to be a problem with the destruction order for the static > objects in OpenSceneGraph. At program termination when executing in debug > mode, I get a mutex lock error in the destructor for > "s_renderBinPrototypeList" (osgUtil/RenderBin.cpp line 44). This error is > caused by the static mutex "s_ReferencedGlobalMutext" (osg/Referenced.cpp > line 82) already being destructed prior to the destruction of > "s_renderBinPrototypeList". > > Is this a known problem and/or does anyone have suggestions on how to > resolve it? I've already tried changing the link-order of the osg/osgutil > libraries, but this does not seem to make any difference. > > Configuration: > OSG 2.8.1, built with static OSG and OT libs. on MS visual C++ 9/2008 SP1. > > Thanks in advance, > Fredrik Orderud > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org