Changeset 10527 for code/branches/core7/src/libraries/core/Core.cc
- Timestamp:
- Jun 6, 2015, 10:43:12 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/Core.cc
r10525 r10527 128 128 // TODO: initialize CommandLineParser here 129 129 // TODO: initialize ConsoleCommandManager here 130 // TODO: initialize NetworkFunctionManager here 130 131 this->rootModule_ = ModuleInstance::getCurrentModuleInstance(); 131 132 this->rootModule_->loadAllStaticallyInitializedInstances(); … … 241 242 safeObjectDelete(&languageInstance_); 242 243 safeObjectDelete(&configFileManager_); 244 safeObjectDelete(&signalHandler_); 245 Context::getRootContext()->unregisterObject(); // unregister context from object lists - otherwise the root context would be destroyed while unloading the root module 246 if (this->rootModule_) 247 { 248 this->rootModule_->unloadAllStaticallyInitializedInstances(); 249 this->rootModule_->deleteAllStaticallyInitializedInstances(); 250 } 243 251 Context::setRootContext(NULL); 244 safeObjectDelete(&signalHandler_); 245 // if (this->rootModule_) 246 // this->rootModule_->unloadAllStaticallyInitializedInstances(); 247 // safeObjectDelete(&rootModule_); 252 safeObjectDelete(&rootModule_); 248 253 safeObjectDelete(&dynLibManager_); 249 254 safeObjectDelete(&configurablePaths_); … … 277 282 void Core::loadModule(ModuleInstance* module) 278 283 { 284 orxout(internal_info) << "Loading module " << module->getName() << "..." << endl; 285 279 286 ModuleInstance::setCurrentModuleInstance(module); 280 287 DynLib* dynLib = this->dynLibManager_->load(module->getName()); … … 298 305 void Core::unloadModule(ModuleInstance* module) 299 306 { 307 orxout(internal_info) << "Unloading module " << module->getName() << "..." << endl; 308 300 309 module->unloadAllStaticallyInitializedInstances(); 301 310 module->deleteAllStaticallyInitializedInstances();
Note: See TracChangeset
for help on using the changeset viewer.