From b1548ddefd4889ebc5d24f1314bfe1a78c0cad29 Mon Sep 17 00:00:00 2001 From: caremoli Date: Fri, 6 Jun 2008 15:49:50 +0000 Subject: [PATCH] CCAR: remove thrown exceptions in shutdown servers with python components --- src/Container/SALOME_ComponentPy.py | 5 +++-- src/Container/SALOME_Container.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Container/SALOME_ComponentPy.py b/src/Container/SALOME_ComponentPy.py index 5d071b8e4..77f89ac47 100755 --- a/src/Container/SALOME_ComponentPy.py +++ b/src/Container/SALOME_ComponentPy.py @@ -147,8 +147,9 @@ class SALOME_ComponentPy_i (Engines__POA.Component): def destroy(self): MESSAGE( "SALOME_ComponentPy_i::destroy" ) - id = self._poa.servant_to_id(self) - self._poa.deactivate_object(id) + #id = self._poa.servant_to_id(self) + #self._poa.deactivate_object(id) + return #------------------------------------------------------------------------- diff --git a/src/Container/SALOME_Container.py b/src/Container/SALOME_Container.py index 179150954..405d1f963 100644 --- a/src/Container/SALOME_Container.py +++ b/src/Container/SALOME_Container.py @@ -64,8 +64,8 @@ class SALOME_Container_i: #------------------------------------------------------------------------- - def __del__(self ): - self._orb.destroy() + #def __del__(self ): + # self._orb.destroy() def import_component(self, componentName): MESSAGE( "SALOME_Container_i::import_component" ) -- 2.39.2