** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ctndicom.cpp,v 1.3 2001/03/02 02:08:14 kevin Exp $
+** $Id: ctndicom.cpp,v 1.4 2001/03/02 05:10:22 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
}
m_iContents = DICOM_CONTENTS_PROJECTIONS;
m_pProjections = new Projections;
- m_pProjections->initFromSomatomAR_STAR (iNViews, iNDets, pRawProjections, lRtnLength);
+ if (! m_pProjections->initFromSomatomAR_STAR (iNViews, iNDets, pRawProjections, lRtnLength)) {
+ m_bFail = true;
+ m_strFailMessage = "Error converting raw projection data";
+ delete m_pProjections;
+ m_pProjections = NULL;
+ }
+
delete pRawProjections;
}