title: sending ImageMagick object in openMPI, C++
body: <p>I have a severe problem in my project. I need to send an image data to another node in the cluster. I read the images with ImageMagick, as like:</p>
  
  <pre><code>Image testImage;
  
  // read in the file
  testImage.read("image.png");
  </code></pre>
  
  <p>And i send it as:</p>
  
  <pre><code>MPI_Send( &amp;testImage, sizeof(Image), MPI_BYTE, i , 100, MPI_COMM_WORLD);
  </code></pre>
  
  <p>the other nodes should receive it as:</p>
  
  <pre><code>Image subimage_toModify;
  MPI_Recv( &amp;subimage_toModify, sizeof(Image), MPI_BYTE, 0, 100, MPI_COMM_WORLD, &amp;status);
  </code></pre>
  
  <p>But i get a Segmentation Fault:</p>
  
  <pre><code>Signal code: Address not mapped (1)
  </code></pre>
  
  <p>can anyone be of any help? i am almost frustrated ! </p>