<html>
<body>
The backslashes "\" are escaping the next character. Use
forward slashes "/" instea1d.<br><br>
At 07:45 AM 5/11/2006, Fran Vázquez wrote:<br>
<blockquote type=cite class=cite cite> <br>
Hi all again !<br>
<br>
I have pointed out the bug when updating the ImageFileReader (thanks
Iván).<br>
<br>
<i>typedef unsigned char PixelComponentType;<br>
typedef itk::RGBPixel< PixelComponentType > RGBPixelType;<br>
const unsigned int Dimension = 2;<br>
</i> <br>
<i>typedef itk::Image< RGBPixelType, Dimension >
RGBImageType;<br>
typedef itk::ImageFileReader< RGBImageType > ReaderType;<br>
</i> <br>
<i>ReaderType::Pointer reader = ReaderType::New();<br>
reader->SetFileName("D:\personal\fvazquez\imagenes\5.jpg");<br>
</i> <br>
<i>try<br>
{<br>
reader->Update();<br>
}<br>
catch(itk::ExceptionObject &err)<br>
{<br>
CString msg;<br>
msg.Format("%s",
err.GetDescription());<br>
MessageBox(NULL, msg, "Error",
MB_ICONINFORMATION);<br>
} <br>
</i> <br>
When the program reach the "<i>reader->Update();</i>" it
crashes. The ExceptionObject shown in the messagebox is: <i>"The
file doesn't exist. D:\personal\fvazquez\imagenes\5.jpg",</i> or
more exactly: <i>"The file doesn't exist.
D:personalvazquezimagenes.jpg",</i> with some characters missing or
wrong. <br>
<br>
However the image file exists and the full path is correct, I'm quite
sure!. In my previous mail I write you an incomplete path (thanks Luis)
but it was right typed in the code. <br>
<br>
Any ideas?.<br>
<br>
Thanks in advance.<br>
_______________________________________________<br>
Insight-users mailing list<br>
Insight-users@itk.org<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" eudora="autourl">http://www.itk.org/mailman/listinfo/insight-users</a></blockquote></body>
</html>