]> Creatis software - bbtk.git/blobdiff - packages/gdcmvtk/src/bbgdcmvtkGetXCoherentInfoGdcmReader.cxx
#3309 BBTK Bug New Normal - Bug gdcmvtk - GetXCoherentInfoGdcmReader std - FilesFro...
[bbtk.git] / packages / gdcmvtk / src / bbgdcmvtkGetXCoherentInfoGdcmReader.cxx
index 6c810593aa5758ca97dc852ed27256119e66655b..aeb0f78bb96f59bf817db55de93a24f7530c4f42 100644 (file)
@@ -107,6 +107,8 @@ printf("EED GetXCoherentInfoGdcmReader::Process 1\n");
        bbSetOutputOut( CreateDefaultImage() );
        return;
    } // if res
+
+try {
  // Get info from the first image file
    int i;
    std::vector<double> v_iop;
@@ -153,7 +155,7 @@ printf("EED GetXCoherentInfoGdcmReader::Process 5\n");
 
        if (l==NULL)
        {       
-               printf("EED GetXCoherentInfoGdcmReader::Process Warnning not coherent list/file \n");
+               printf("EED GetXCoherentInfoGdcmReader::Process Warnning (1) not coherent list/file \n");
                return;
        }
 printf("EED GetXCoherentInfoGdcmReader::Process 6\n");
@@ -211,6 +213,11 @@ printf("EED GetXCoherentInfoGdcmReader::Process 6\n");
    reader->Update();
    reader->GetOutput();
    bbSetOutputOut( reader->GetOutput() );
+} catch (...) {
+               printf("EED GetXCoherentInfoGdcmReader::Process Warnning (2) not coherent list/file \n");
+               return;
+} // try
+
 }
 #endif
 // endif USE_GDCM