Hi Paul,

On Tue, Jun 15, 2010 at 4:47 PM, Paul Palumbo <[email protected]> wrote:
> How does the osgDB::Registry instance get deleted? I'm using OSG 2.8.3 and 
> I'm not following how the osgDB::Registry destructor is being called.

It's a singleton that uses a static ref_ptr<> to store the
osgDB::Registry object, this gets cleaned up by the compiler during
clean of the application.

> I create and destroy my viewer several times without exiting my executable.

? I'm not sure how the viewer being created and destroyed has anything
to do with Registry or exiting your executable.

FYI, if you want to destroy the Registry manually you can do:

  osgDB::Registry::instance(true);

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to