_computeError = algo->GetComputeError();
}
catch ( std::bad_alloc& exc ) {
- printf("std::bad_alloc\n");
+ printf("std::bad_alloc thrown inside algo->Compute()\n");
if ( _computeError ) {
_computeError->myName = COMPERR_MEMORY_PB;
//_computeError->myComment = exc.what();
throw exc;
}
catch ( Standard_OutOfMemory& exc ) {
- printf("Standard_OutOfMemory\n");
+ printf("Standard_OutOfMemory thrown inside algo->Compute()\n");
if ( _computeError ) {
_computeError->myName = COMPERR_MEMORY_PB;
//_computeError->myComment = exc.what();
if (ret)
{
_computeError.reset();
- //UpdateDependantsState( SUBMESH_COMPUTED ); // send event SUBMESH_COMPUTED
}
UpdateDependantsState( SUBMESH_COMPUTED ); // send event SUBMESH_COMPUTED
}
noErrors = false;
}
}
- if ( !theAlgo->OnlyUnaryInput() && !theShape.IsNull() &&
- theShape.ShapeType() == TopAbs_COMPOUND )
- {
- for (TopoDS_Iterator subIt( theShape ); subIt.More(); subIt.Next()) {
- SMESH_subMesh* sm = _father->GetSubMesh( subIt.Value() );
- if ( sm != this && !sm->CheckComputeError( theAlgo ))
- noErrors = false;
- }
- }
return noErrors;
}