]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix omniORB::fatalException at SALOME termination after creating a Mesh in Python
authoreap <eap@opencascade.com>
Thu, 19 Sep 2013 12:44:24 +0000 (12:44 +0000)
committereap <eap@opencascade.com>
Thu, 19 Sep 2013 12:44:24 +0000 (12:44 +0000)
do not call mesh.Register() as this prevents mesh servant deletion at closing study

src/SMESH_SWIG/smeshBuilder.py

index d2e6419df12234a75bd9de25e4dc3476903e77f5..b82ba1ee5314c27e1d630b45e021985a19ee169c 100644 (file)
@@ -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