Commit 39e4aadf by IOWA\dheitbri

added some fault handling for damaged files

parent 0c15ca52
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/// ///
// DAQ low level IO Library // DAQ low level IO Library
// //
// $Id: DaqFileIO.cxx,v 1.25 2018/09/12 19:19:02 IOWA\dheitbri Exp $ // $Id: DaqFileIO.cxx,v 1.26 2019/07/10 17:05:56 IOWA\dheitbri Exp $
// Date: March, 2005 // Date: March, 2005
// Author: Yiannis Papelis // Author: Yiannis Papelis
// //
...@@ -1690,6 +1690,7 @@ CDaqLowLevelIo::GetFullData( ...@@ -1690,6 +1690,7 @@ CDaqLowLevelIo::GetFullData(
int triesLeft = 32; int triesLeft = 32;
while ( m_Toc.find(frm1) == m_Toc.end() && triesLeft-- > 0 ) frm1++; while ( m_Toc.find(frm1) == m_Toc.end() && triesLeft-- > 0 ) frm1++;
if (triesLeft < 0) return false;
assert(triesLeft>0); // shouldn't really happen assert(triesLeft>0); // shouldn't really happen
triesLeft = 32; triesLeft = 32;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment