From Michael Gronager, with updates from Robert Osfield, to add support

for Registry::closeAllLibrary and forced Registry destruction via
Registry::instance(true).
This commit is contained in:
Robert Osfield
2003-12-13 16:36:29 +00:00
parent 1025643170
commit 0cbe10d399
3 changed files with 19 additions and 9 deletions

View File

@@ -41,12 +41,14 @@ DynamicLibrary::DynamicLibrary(const std::string& name,HANDLE handle)
{
_name = name;
_handle = handle;
osg::notify(osg::INFO)<<"Opened DynamicLibrary "<<_name<<std::endl;
}
DynamicLibrary::~DynamicLibrary()
{
if (_handle)
{
osg::notify(osg::INFO)<<"Closing DynamicLibrary "<<_name<<std::endl;
#if defined(WIN32) && !defined(__CYGWIN__)
FreeLibrary((HMODULE)_handle);
#elif defined(__DARWIN_OSX__)