[Ctk-developers] ctkPlugins::install hides the original cause of	ctkPluginExceptions
    Miklos Espak 
    espakm at gmail.com
       
    Tue Dec  4 17:09:21 UTC 2012
    
    
  
Hi,
CTK failed to install one of our MITK plugins. The error turned to be
in our plugin, but I found a little mistake in the CTK code while
debugging, that made it a bit difficult to find the error in the
plugin.
In ctkPluginStorageSQL.cpp:436 a ctkPluginException is thrown when a
plugin could not be loaded.
This is fine, but in ctkPlugins.cpp:125-139 it is caught as
ctkException, and re-wrapped to another ctkPluginException.
Because of this, the original error does not appear in the log
(BlueBerry.consoleLog), what makes it a bit troublesome to find out
what is wrong with the plugin.
Inserting these lines at line 125 has solved the problem for me:
    catch (const ctkPluginException& e)
    {
      if (!pa.isNull())
      {
        pa->purge();
      }
      throw e;
    }
Cheers,
Miklos
    
    
More information about the Ctk-developers
mailing list