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 } }
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); } } }
void DynLib::unload() { if(!m_hInst) return; if(DYNLIB_UNLOAD(m_hInst)) { BS_EXCEPT(InternalErrorException, "Could not unload dynamic library " + mName + ". System Error: " + dynlibError()); } }
//----------------------------------------------------------------------- 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; }
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()); } } }
// 卸载动态库 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"); } }
//----------------------------------------------------------------------- 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"); } }
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 }
DynamicModule::~DynamicModule() { DYNLIB_UNLOAD(d_handle); }
bool NFCDynLib::UnLoad() { DYNLIB_UNLOAD(mInst); return true; }
~Impl() { DYNLIB_UNLOAD(d_handle); }
DynamicLibrary::~DynamicLibrary() { if(_handle) DYNLIB_UNLOAD(_handle); }
//##ModelId=4C5A6F760110 void CPluginDll::UnLoad() { DYNLIB_UNLOAD(m_hInst); }
~Impl() { CEGUI_UNUSED(DYNLIB_UNLOAD(d_handle)); }