From: eap Date: Thu, 19 Sep 2013 12:44:24 +0000 (+0000) Subject: Fix omniORB::fatalException at SALOME termination after creating a Mesh in Python X-Git-Tag: V7_3_0a1~146 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fab1d896c8185737ac8bcbacfc1f50f1a180c8bd;p=modules%2Fsmesh.git 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 --- 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