Skip to content
Snippets Groups Projects
Commit b93f4314 authored by Axel Naumann's avatar Axel Naumann
Browse files

Do not catch exceptions thrown by the plugin-invoked function. Fixes Savannah #36363

git-svn-id: http://root.cern.ch/svn/root/trunk@23783 27541ba8-7e3a-0410-8455-c3a389f83636
parent 6c3f039f
No related branches found
No related tags found
No related merge requests found
......@@ -123,18 +123,8 @@ void* Reflex::PluginService::Create( const string & name,
return 0;
}
else {
try {
Object rett = m.Invoke(dummy, argv);
return rett.Address();
}
catch (RuntimeError& e) {
if ( Debug() ) cout << "PluginService: Got exception -> " << e.what() << endl;
return 0;
}
catch (exception& e) {
if ( Debug() ) cout << "PluginService: Got exception -> " << e.what() << endl;
return 0;
}
Object rett = m.Invoke(dummy, argv);
return rett.Address();
}
}
......@@ -186,18 +176,8 @@ void* Reflex::PluginService::CreateWithId(const Any& id,
return 0;
}
else {
try {
Object rett = m.Invoke(dummy, argv);
return rett.Address();
}
catch (RuntimeError& e) {
if ( Debug() ) cout << "PluginService: Got exception -> " << e.what() << endl;
return 0;
}
catch (exception& e) {
if ( Debug() ) cout << "PluginService: Got exception -> " << e.what() << endl;
return 0;
}
Object rett = m.Invoke(dummy, argv);
return rett.Address();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment