mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-02 21:00:34 +05:00
PAL16774 (Crash after display of many groups)
throw if there are errors in buildPrs()
This commit is contained in:
parent
0a33c4aa98
commit
fb0ce93a9c
@ -199,10 +199,8 @@ void SMESH_VisualObjDef::createPoints( vtkPoints* thePoints )
|
||||
//=================================================================================
|
||||
void SMESH_VisualObjDef::buildPrs()
|
||||
{
|
||||
// PAL16631(crash after a mesh computation that failed because of lack of memory):
|
||||
// Catch exceptions upper by stack
|
||||
// try
|
||||
// {
|
||||
try
|
||||
{
|
||||
mySMDS2VTKNodes.clear();
|
||||
myVTK2SMDSNodes.clear();
|
||||
mySMDS2VTKElems.clear();
|
||||
@ -212,15 +210,18 @@ void SMESH_VisualObjDef::buildPrs()
|
||||
buildNodePrs();
|
||||
else
|
||||
buildElemPrs();
|
||||
// }
|
||||
// catch( const std::exception& exc )
|
||||
// {
|
||||
// INFOS("Follow exception was cought:\n\t"<<exc.what());
|
||||
// }
|
||||
// catch(...)
|
||||
// {
|
||||
// INFOS("Unknown exception was cought !!!");
|
||||
// }
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
mySMDS2VTKNodes.clear();
|
||||
myVTK2SMDSNodes.clear();
|
||||
mySMDS2VTKElems.clear();
|
||||
myVTK2SMDSElems.clear();
|
||||
|
||||
myGrid->SetPoints( 0 );
|
||||
myGrid->SetCells( 0, 0, 0 );
|
||||
throw;
|
||||
}
|
||||
|
||||
if( MYDEBUG ) MESSAGE( "Update - myGrid->GetNumberOfCells() = "<<myGrid->GetNumberOfCells() );
|
||||
if( MYDEBUGWITHFILES ) SMESH::WriteUnstructuredGrid( myGrid,"/tmp/buildPrs" );
|
||||
|
Loading…
Reference in New Issue
Block a user