Home Bug Reports

Plugins get destroyed twice

SheffSheff Member Stanislav VorobiovOrganization: FocusMediaProject: Object System
If I have multiple plugins and, for example, the second one throws an exception then destroy() is called for first plugin, after that, on leaving Ice::Application::run, _pluginManager->destroy() is called causing destroy() to be called for first plugin once again, is that expected behavior ? If so, why does IceSSL have the following 'destroy' code:
_instance->destroy();
_instance = 0;
after second call to such destroy it'll throw Ice::NullHandleException and since
PluginManagerI::destroy() doesn't catch exceptions it'll no longer call
destroy's of other plugins.

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    If that occurs, it is a bug. We'll check into it!
Sign In or Register to comment.