From: ouv Date: Tue, 9 Apr 2013 13:30:12 +0000 (+0000) Subject: Issue 0051852: TC7.2.0: Segmentation violation after loading a file. X-Git-Tag: NEWBOP_OCCdev_973f1c39ac X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8e354daf56e288255aa7c000c7d3fa020fe3f043;p=modules%2Fvisu.git Issue 0051852: TC7.2.0: Segmentation violation after loading a file. --- diff --git a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc index e651f9e1..e95393ac 100644 --- a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc @@ -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; }