title: OutOfMemoryException was unhandled
body: <p>I change the <a href="http://www.codeproject.com/Articles/95453/Automatic-Image-Stitching-with-Accord-NET" rel="nofollow noreferrer">Automatic Image Stitching with Accord.NET</a> application to stitch multiple files.<br>
  I put a <code>for loop</code> at the <code>btnDoItAll</code> code, the loop will depend on how many images was to stitch.<br>
  I have joined a cropping code at the end of the loop. you can see the <a href="https://stackoverflow.com/questions/9250752/ioexception-was-unhandled">here</a>.<br>
  The an error showed up which said <code>OutOfMemoryException was unhandled - Out of memory</code> in this part.  </p>
  
  <pre><code>croppedBitmap = croppedBitmap.Clone(new Rectangle(MinWidth, 0, (int)croppedBitmap.Width - MinWidth - MaxWidth, 1323), System.Drawing.Imaging.PixelFormat.DontCare);
  </code></pre>
  
  <p>hope you can help me again.  </p>
  
  <pre><code>The output from debug was these:  
  Bitmap-width: 877
  Bitmap-height: 1325
  Width: -1
  MinWidth: 877
  A first chance exception of type 'System.OutOfMemoryException' occurred in System.Drawing.dll  
  </code></pre>