<br>Hy Syrine,<br><br>The code looks ok.<br><br>You may be confused with the normal termination of the program.<br><br>If you run it in Debug mode, and walk line by line,<br>do you get up to the end of the program ?<br><br>
Please let us know,<br><br><br> Thanks,<br><br><br> Luis<br><br><br>----------------------------------------<br><div class="gmail_quote">On Wed, Jun 17, 2009 at 4:34 AM, Syrine Sahmim <span dir="ltr"><<a href="mailto:syrine.sahmim@yahoo.fr">syrine.sahmim@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>hi,<br>i try the program below but i have this error when i run it:"the program '[640] Image1.exe: Natif' is stopped with code 0 (0x0)."<br>what does mean this error?<br>#if defined(_MSC_VER)<br>#pragma warning ( disable : 4786 )<br>
#endif<br>#include "itkImage.h"<br>int main(int, char *[])<br>{ typedef itk::Image< unsigned short, 3 > ImageType;<br> ImageType::Pointer image = ImageType::New(); <br> ImageType::IndexType start;<br>
start[0] = 0; // first index on X<br> start[1] = 0; // first index on Y<br> start[2] = 0; // first index on Z<br> ImageType::SizeType size;<br> size[0] = 200; // size along
X<br> size[1] = 200; // size along Y<br> size[2] = 200; // size along Z<br> ImageType::RegionType region;<br> region.SetSize( size );<br> region.SetIndex( start );<br> image->SetRegions( region );<br> image->Allocate();<br>
system("pause");<br> return 0;<br></div></div><br>
</div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>