comparison Framework/Outputs/DicomPyramidWriter.cpp @ 7:bc3ca410b765

Fix freeze if the target Orthanc is not accepting images
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Oct 2016 15:42:52 +0200
parents 4a7a53257c7d
children 7a88c614be04
comparison
equal deleted inserted replaced
6:d0108402e85c 7:bc3ca410b765
177 177
178 for (size_t i = 0; i < writers_.size(); i++) 178 for (size_t i = 0; i < writers_.size(); i++)
179 { 179 {
180 if (writers_[i] != NULL) 180 if (writers_[i] != NULL)
181 { 181 {
182 FlushInternal(*writers_[i], true); 182 try
183 {
184 FlushInternal(*writers_[i], true);
185 }
186 catch (Orthanc::OrthancException&)
187 {
188 LOG(ERROR) << "Cannot push the pending tiles to the DICOM pyramid while finalizing";
189 }
190
183 delete writers_[i]; 191 delete writers_[i];
184 } 192 }
185 } 193 }
186 } 194 }
187 195