X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FUtils%2FUtils_ORB_INIT.cxx;fp=src%2FUtils%2FUtils_ORB_INIT.cxx;h=883e4a27af37991d32719a9ad2cf957301068a68;hb=0df1ed4f7038391d1afbc3eb445923124684e6f4;hp=84904ea7e4ea5174c024f5973f0f9c47219efc29;hpb=39fe4b1e1141ebdaf66c5942203eae21470df3c0;p=modules%2Fkernel.git diff --git a/src/Utils/Utils_ORB_INIT.cxx b/src/Utils/Utils_ORB_INIT.cxx index 84904ea7e..883e4a27a 100644 --- a/src/Utils/Utils_ORB_INIT.cxx +++ b/src/Utils/Utils_ORB_INIT.cxx @@ -54,6 +54,19 @@ ORB_INIT::~ORB_INIT() } } +void ORB_INIT::explicit_destroy() +{ + if ( ! CORBA::is_nil( _orb ) ) + { + try { + _orb->destroy() ; + _orb = CORBA::ORB::_nil(); + } + catch(...) { + MESSAGE("Caught CORBA::Exception."); + } + } +} CORBA::ORB_var &ORB_INIT::operator() ( int argc , char **argv ) throw( CommException ) {