[Insight-users] exceptions with metaImage

Marius Staring marius at isi.uu.nl
Mon Jun 27 09:00:46 EDT 2005


I am reposting this message, since it seems to be missed ...

I also filed a bug report with number 1978, see

       http://www.itk.org/Bug/bug.php?op=show&bugid=1978&pos=4

Cheers,

Marius

Marius Staring wrote:

> Hi all,
>
> we just found out that, when reading in images with MetaImageIO, no 
> exception is thrown when data is not read in completely. This is due 
> to the fact that the errors from the M_ReadElements-function in 
> metaImage-class (in Utilities) are not handled at all in the 
> Read-function from this class.
>
> For example in line 658 of metaImage.cxx is says:
>
>       M_ReadElements(m_ReadStream, m_ElementData, m_Quantity);
>
> This function returns a boolean which I think should be checked, like 
> for example
>
>       if ( !M_ReadElements(m_ReadStream, m_ElementData, m_Quantity) )
>        {
>             return false;
>        }
>
> There are more occurences of this in this function.
>
> Is it possible to fix this error?
>
> Regards,
>
> Stefan Klein and Marius Staring
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>

-- 
Marius Staring
Image Sciences Institute
University Medical Centre Utrecht
Heidelberglaan 100, 3584 CX Utrecht, The Netherlands
phone: +31 (0)30 250 3186, fax: +31 (0)30 251 3399
marius at isi.uu.nl, http://www.isi.uu.nl/People/Marius



More information about the Insight-users mailing list