HI Bruno, Make sure you are using ref_ptr<> in your ReadFileCallback for any scene graph data structures so if you remove nodes from the main scene graph they don't get deleted mid load. If you do this properly then there should be no need to mess around with blocks that would complicate the code.
Robert. On 7 July 2017 at 14:46, Bruno Oliveira <[email protected]> wrote: > Hello, > > i have a PagedLOD bases scene. > > At some point I remove a node, but OSG sometimes is reading a subnode and > crashes at ReadFileCallback. > > I can solve this if there is some mechanism to wait for the current callback > to finish reading, like for instance a > osgDB::DataBasePager::waitForCurrentThreadToFinish() function. > > Is there something like this? > > _______________________________________________ > 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

