[Insight-users] what's this error plz

Luis Ibanez luis.ibanez at kitware.com
Wed Jun 17 06:33:17 EDT 2009


Hy Syrine,

The code looks ok.

You may be confused with the normal termination of the program.

If you run it in Debug mode, and walk line by line,
do you get up to the end of the program ?

Please let us know,


      Thanks,


           Luis


----------------------------------------
On Wed, Jun 17, 2009 at 4:34 AM, Syrine Sahmim <syrine.sahmim at yahoo.fr>wrote:

> hi,
> 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)."
> what does mean this error?
> #if defined(_MSC_VER)
> #pragma warning ( disable : 4786 )
> #endif
> #include "itkImage.h"
> int main(int, char *[])
> {  typedef itk::Image< unsigned short, 3 > ImageType;
>    ImageType::Pointer image = ImageType::New();
>    ImageType::IndexType start;
>   start[0] =   0;  // first index on X
>   start[1] =   0;  // first index on Y
>   start[2] =   0;  // first index on Z
>   ImageType::SizeType  size;
>   size[0]  = 200;  // size along X
>   size[1]  = 200;  // size along Y
>   size[2]  = 200;  // size along Z
>   ImageType::RegionType region;
>   region.SetSize( size );
>   region.SetIndex( start );
>   image->SetRegions( region );
>   image->Allocate();
>   system("pause");
>    return 0;
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090617/24facaa2/attachment.htm>


More information about the Insight-users mailing list