From aa7f6c9a457d7267aef0346da62619b076412c1a Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 16 Nov 2007 09:35:58 +0000 Subject: [PATCH] To introduce additional checks for reading distributed MED files --- src/VISU_I/VISU_MultiResult_i.cc | 23 +++++++++++++++++------ src/VISU_I/VISU_Result_i.cc | 4 ++-- 2 files changed, 19 insertions(+), 8 deletions(-) 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"<