Пример #1
0
void cPluginManager::uninstallPlugin(IAudioPlugin* plugin)
{
	if(plugin)
	{
		RegisteredPluginsIterator it;
		for(it = RegisteredPlugins.begin(); it != RegisteredPlugins.end(); it++)
		{
			if(it->second == plugin)
			{
				RegisteredPlugins.erase(it->first);
				break;
			}
		}

#ifdef CAUDIO_COMPILE_WITH_DYNAMIC_PLUGIN_SUPPORT
		DynamicallyLoadedPluginsIterator it2 = DynamicallyLoadedPlugins.find(plugin);
		if(it2 != DynamicallyLoadedPlugins.end())
		{
			//Found a plugin we loaded from the filesystem, unload it and delete the plugin
			it2->first->drop();
			if(DYNLIB_UNLOAD(it2->second))
			{
				//Could be an error, not reporting it for now
			}
			DynamicallyLoadedPlugins.erase(it2->first);
		}
#endif
	}
}
Пример #2
0
	void cPluginManager::uninstallPlugin(IAudioPlugin* plugin)
	{
		if(plugin)
		{
			RegisteredPluginsIterator it;
			for(it = RegisteredPlugins.begin(); it != RegisteredPlugins.end(); it++)
			{
				if(it->second == plugin)
				{
					RegisteredPlugins.erase(it->first);
					break;
				}
			}

			DynamicallyLoadedPluginsIterator it2 = DynamicallyLoadedPlugins.find(plugin);
			if(it2 != DynamicallyLoadedPlugins.end())
			{
				//Found a plugin we loaded from the filesystem, unload it and delete the plugin
				it2->first->drop();
				if(DYNLIB_UNLOAD(it2->second))
				{
					getLogger()->logError("cPluginManager", "Plugin Error: %s.", getError().c_str());
				}
				DynamicallyLoadedPlugins.erase(it2->first);
			}
		}
	}
Пример #3
0
    void DynLib::unload()
    {
		if(!m_hInst)
			return;

        if(DYNLIB_UNLOAD(m_hInst))
		{
			BS_EXCEPT(InternalErrorException, 
                "Could not unload dynamic library " + mName +
                ".  System Error: " + dynlibError());
		}
    }
Пример #4
0
//-----------------------------------------------------------------------
bool DynLib::unload()
{
	// Log library unload        
	GameLog::logMessage("Unloading library %s", m_name.c_str());

	if( DYNLIB_UNLOAD( m_hInst ) )
	{
		GameLog::errorMessage( "Could not unload dynamic library %s. System Error: %s", m_name.c_str(), dynlibError().c_str() );
		return false;
	}
	return true;
}
Пример #5
0
	cPluginManager::~cPluginManager()
	{
		DynamicallyLoadedPluginsIterator it;
		for(it = DynamicallyLoadedPlugins.begin(); it != DynamicallyLoadedPlugins.end(); it++)
		{
			//Found a plugin we loaded from the filesystem, unload it and delete the plugin
			it->first->drop();
			if(DYNLIB_UNLOAD(it->second))
			{
				getLogger()->logError("cPluginManager", "Plugin Error: %s.", getError().c_str());
			}
		}
	}
Пример #6
0
	// 卸载动态库
	void CDynamicLib::UnLoad(void)
	{
		// 记录日志
		ILogManage::GetSingleton().RecordLog("卸载动态库" + m_strName);

		if (DYNLIB_UNLOAD(m_hInsLib))
		{
			SIMVIEW_EXCEPT(
				CSVExpection::ERR_INTERNAL_ERROR, \
				"不能打开动态库" + m_strName + \
				". 系统错误码 " + GetLastError(), \
				"DynLib::UnLoad");
		}
	}
Пример #7
0
//-----------------------------------------------------------------------
void DynLib::unload()
{
    // Log library unload
    LogManager::getSingleton().logMessage("Unloading library " + mName);

    if( DYNLIB_UNLOAD( mInst ) )
    {
        OGRE_EXCEPT(
            Exception::ERR_INTERNAL_ERROR,
            "Could not unload dynamic library " + mName +
            ".  System Error: " + dynlibError(),
            "DynLib::unload");
    }

}
Пример #8
0
cPluginManager::~cPluginManager()
{
#ifdef CAUDIO_COMPILE_WITH_DYNAMIC_PLUGIN_SUPPORT
	DynamicallyLoadedPluginsIterator it;
	for(it = DynamicallyLoadedPlugins.begin(); it != DynamicallyLoadedPlugins.end(); it++)
	{
		//Found a plugin we loaded from the filesystem, unload it and delete the plugin
		it->first->drop();
		if(DYNLIB_UNLOAD(it->second))
		{
			//Could be an error, not reporting it for now
		}
	}
#endif
}
Пример #9
0
DynamicModule::~DynamicModule()
{
    DYNLIB_UNLOAD(d_handle);
}
Пример #10
0
bool NFCDynLib::UnLoad()
{
    DYNLIB_UNLOAD(mInst);
    return true;
}
Пример #11
0
 ~Impl()
 {
     DYNLIB_UNLOAD(d_handle);
 }
Пример #12
0
DynamicLibrary::~DynamicLibrary()
{
    if(_handle)
        DYNLIB_UNLOAD(_handle);
}
Пример #13
0
//##ModelId=4C5A6F760110
void CPluginDll::UnLoad()
{
	DYNLIB_UNLOAD(m_hInst);
}
Пример #14
0
 ~Impl()
 {
     CEGUI_UNUSED(DYNLIB_UNLOAD(d_handle));
 }