Salome HOME
Issue 0051852: TC7.2.0: Segmentation violation after loading a file.
authorouv <ouv@opencascade.com>
Tue, 9 Apr 2013 10:02:49 +0000 (10:02 +0000)
committerouv <ouv@opencascade.com>
Tue, 9 Apr 2013 10:02:49 +0000 (10:02 +0000)
src/VISU_I/VISU_ColoredPrs3dCache_i.cc

index e651f9e179367507dc78eeff83d8076d777e719a..e95393ac20081c037f10ed4f8173dee4508f2a6c 100644 (file)
@@ -529,6 +529,14 @@ VISU::ColoredPrs3dCache_i
     thePrs3d->SetHolderEntry( theHolderEntry );
     thePrs3d->UnRegister();
   }
+
+  // It seems strange but calling this method here (note that is should be called
+  // for the whole cache, not for the specified prs) is fully enough to avoid the bug
+  // 0051852: TC7.2.0: Segmentation violation after loading a file.
+  // This method, in particular, forces the presentations to update their pipelines -
+  // probably, this could be a key.
+  GetMemorySize();
+
   return thePrs3d;
 }