[osg-users] Safely loading paged databases at runtime

Jason Beverage jasonbeverage at gmail.com
Mon Mar 23 08:28:35 PDT 2009


Hi Robert,

I've been working with loading and unloading different osgEarth files at
runtime (such as from a File | Open menu) using OSG and have found that I
need to take special care to make sure that the DatabasePager is not working
on a loaded node before removing it and replacing it with a different
scene.  This isn't a big deal and essentially consists of telling the
database pager to not accept any new requests, clearing any pending requests
and waiting for the pager to complete by checking the getRequestsInProgress.

I've found that if I simply replace the main earth file's node with a new
one while the DatabasePager is working, my application will crash.  Is this
the intended behavior or have I found a potential issue?

Thanks!

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090323/199c54d3/attachment-0002.htm>


More information about the osg-users mailing list