I agree that my proposed fix is limited to s_renderBinPrototypeList, and similar problems from other static objects can surface at a later time. However, I fear that I can prove difficult to create an elegant infrastructure for ordering the construction of static objects in a bullet-proof way.
>From my personal experience, the approach of adding "loaders" for dependent >static objects just before creating the static object in question works very >well in most cases, and fits nicely into the singleton pattern. The downside >is that it adds some extra lines of "dummy" code, with no apparent function >unless commented properly. But this is not that much of a problem as long as >you have relatively few static objects in your program that depends on other >statics for destruction. As of today, OSG _always_ crashes upon program termination when using static OSG libs. This is a big annoyance, and it makes it difficult to debug other code that uses OSG. I would therefore greatly appreciate if you commit my proposed 1-line fix, so that OSG at least terminates properly in most cases. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=12903#12903 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

