From: apo Date: Fri, 16 Nov 2007 09:35:58 +0000 (+0000) Subject: To introduce additional checks for reading distributed MED files X-Git-Tag: mergeto_BR_Dev_For_4_0_07-Dec-07~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aa7f6c9a457d7267aef0346da62619b076412c1a;p=modules%2Fvisu.git To introduce additional checks for reading distributed MED files --- diff --git a/src/VISU_I/VISU_MultiResult_i.cc b/src/VISU_I/VISU_MultiResult_i.cc index 8894cb93..ce2d5d78 100644 --- a/src/VISU_I/VISU_MultiResult_i.cc +++ b/src/VISU_I/VISU_MultiResult_i.cc @@ -551,12 +551,23 @@ VISU::MultiResult_i QFileInfo aFileInfo(theFileName); QString aTargetFileName = aFileInfo.filePath(); if(aTargetFileName.endsWith("_maitre.med")){ - myMultiprObj.create(theFileName); - if (myMultiprObj.isValidDistributedMEDFile()) { - aTargetFileName = myMultiprObj.getSequentialMEDFilename(); - SetInitFileName(aFileInfo.filePath().latin1()); - SetName(VISU::GenerateName(aFileInfo.fileName()).latin1(), false); - myIsBuildParts = true; + try { + myMultiprObj.create(theFileName); + if ( myMultiprObj.isValidDistributedMEDFile() ) { + aTargetFileName = myMultiprObj.getSequentialMEDFilename(); + SetInitFileName(aFileInfo.filePath().latin1()); + SetName(VISU::GenerateName(aFileInfo.fileName()).latin1(), false); + myIsBuildParts = true; + } + }catch(std::exception& exc){ + MSG(MYDEBUG,"Follow exception was occured in:\n"<