<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I am using ITK 4.6.1, VS2010 and windows 7 64 bit. It gives this
    error on the last line in the try box<br>
    <br>
    <img src="cid:part1.05030101.00070008@rlkling.com" alt=""><br>
    <br>
    #include <stdlib.h><br>
    #include <string.h><br>
    #include <stdio.h><br>
    #include <iostream><br>
    #include <fstream><br>
    #include <afxwinforms.h><br>
    <br>
    #include "itkRawImageIO.h"<br>
    #include "itkImageFileReader.h"<br>
    #include "itkImageFileWriter.h"<br>
    <br>
    #using <mscorlib.dll><br>
    <br>
    using namespace System;<br>
    using namespace System::IO;<br>
    using namespace System::Windows::Forms;<br>
    using namespace System::Drawing;<br>
    using namespace System::Collections;<br>
    using namespace System::Runtime::InteropServices;<br>
    <br>
    <br>
    int main()<br>
    <br>
    {<br>
    <br>
        <br>
    try {<br>
              typedef unsigned char fixedPixelType;<br>
              typedef unsigned char movingPixelType;<br>
    <br>
              typedef itk::Image<fixedPixelType, 3>    
    fixedImageType;<br>
              typedef itk::Image<movingPixelType, 3>    
    movingImageType;<br>
              // create a ImageIO for the raw data files<br>
              typedef itk::RawImageIO<fixedPixelType, 2>
    ImageIOType;<br>
              ImageIOType::Pointer fixedimageio = ImageIOType::New();<br>
    <br>
    <br>
          <br>
    } catch(itk::ExceptionObject & err)<br>
    <br>
            {std::cerr << "itkWrapper caught an ITK exception:\n";<br>
            err.Print(std::cerr);<br>
        }<br>
    }<br>
    <div class="moz-cite-prefix">On 12/24/2014 2:07 PM, Bill Lorensen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CADZJ4hMTAd-nFkd9FPb_uqXVXhX1XMBOxNj8m-YbKfhZsv6hEg@mail.gmail.com"
      type="cite">
      <pre wrap="">Please provide a small, complete compilable example and I'm sure we can help.


On Wed, Dec 24, 2014 at 1:14 PM, Ronn Kling <a class="moz-txt-link-rfc2396E" href="mailto:ronn@rlkling.com"><ronn@rlkling.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello All,

I am trying to read in a binary data file using RawImageIO.  When I step
through with the debugger I get an error on the last line below about memory
corruption. As far as I can tell I have everything correct, what am I
missing?

          typedef unsigned char fixedPixelType;
          typedef unsigned char movingPixelType;

          typedef itk::Image<fixedPixelType, 3> fixedImageType;
          typedef itk::Image<movingPixelType, 3> movingImageType;
          // create a ImageIO for the raw data files
          typedef itk::RawImageIO<fixedPixelType, 2> ImageIOType;
          ImageIOType::Pointer fixedimageio = ImageIOType::New();
_______________________________________________
Community mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Community@itk.org">Community@itk.org</a>
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/community">http://public.kitware.com/mailman/listinfo/community</a>
</pre>
      </blockquote>
      <pre wrap="">


</pre>
    </blockquote>
    <br>
  </body>
</html>