Hi Colin, I've merged the change to using observer_ptr and rather than take all your changes to dependent files have made similar changes to the original files but choosing to not reformat the code like you did. Fingers crossed I haven't missed anything in these changes.
Could you do an svn update to trunk and let me know if everything works OK. Thanks, Robert. On 4 July 2012 10:43, Colin McDonald <[email protected]> wrote: > Hi Robert, > > sharedContext in osg::GraphicsContext::Traits is a raw C pointer. > That means that we can't tell if it is still valid. The given > sharedContext can be destroyed, e.g. if its associated window is > deleted via the window manager or application GUI. > > I've just been investigating an application crash where it appears > that between the Traits being set up with a sharedContext in order > to create a new window, and the new window actually being realised, > some X11 events were processed which resulted in the sharedContext > window being deleted. And this is in a single threaded application. > > It looks as if sharedContext is a good fit for an observer_ptr. > The attached files are modified from the latest trunk revision 13095. > > Regards > > Colin McDonald > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
