From fab1d896c8185737ac8bcbacfc1f50f1a180c8bd Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 19 Sep 2013 12:44:24 +0000 Subject: [PATCH] Fix omniORB::fatalException at SALOME termination after creating a Mesh in Python do not call mesh.Register() as this prevents mesh servant deletion at closing study --- src/SMESH_SWIG/smeshBuilder.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index d2e6419df..b82ba1ee5 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -1206,7 +1206,7 @@ class Mesh: ## Destructor. Clean-up resources def __del__(self): if self.mesh: - self.mesh.UnRegister() + #self.mesh.UnRegister() pass pass @@ -1214,10 +1214,11 @@ class Mesh: # @param theMesh a SMESH_Mesh object # @ingroup l2_construct def SetMesh(self, theMesh): - if self.mesh: self.mesh.UnRegister() + # do not call Register() as this prevents mesh servant deletion at closing study + #if self.mesh: self.mesh.UnRegister() self.mesh = theMesh if self.mesh: - self.mesh.Register() + #self.mesh.Register() self.geom = self.mesh.GetShapeToMesh() pass -- 2.39.2