[Insight-users] DicomSeriesReadPrintTags.cxx runtime error :"iterator not derefenceable"

Arepi szamosi.arpad at gmail.com
Thu Aug 13 10:42:27 EDT 2009


Hi, 

I try out the DicomSeriesReadPrintTags.cxx. Its work fine but when I change
the the DICOM tag in expression:
std::string entryId = "0010|0010";
DictionaryType::ConstIterator tagItr = dictionary.Find( entryId );
to an tag which not implemented in the actual DICOM  header make runtime
error with message: "iterator not derefenceable". I suppose that in case
shloud execute:
if( tagItr == end )
    {
    std::cerr << "Tag " << entryId;
    std::cerr << " not found in the DICOM header" << std::endl;
  
    }
Can anybody explain whats wrong?

Thanks

Arepi
-- 
View this message in context: http://www.nabble.com/DicomSeriesReadPrintTags.cxx-runtime-error-%3A%22iterator-not-derefenceable%22-tp24954912p24954912.html
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list