Problem
- Product : VisiBroker for C
- Product Version: 4.x & later
- Product Component : ORB
Are any exceptions are thrown in exit handlers registered by ORB? If yes, what exceptions are thrown for what corresponding exit handlers.
Resolution
CORBA::BAD_INV_ORDER can be thrown during exit. Here the "exit" means "orb shutdown". However, VisiBroker does not throw any exception in exit_handler. Thus the following structure will make sure all exceptions be caught:
=============================
int main(int argc, char* const* argv)
{
try {
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
....
....
} catch(const CORBA::Exception& e) {
cerr << e << endl;
return 1;
}
}
#Security
#BAD_INV_ORDER
#exithandler
#VisiBroker




