title: Win32Exeption: The operation completed successfully... graphics
body: <p>Ive searched some fo a solution but not a single person shows a solution... I would appreciate if someone could explain why it occurs and how to solve it (in a simple way) :)</p>
  
  <p>Occurs in same place all the time... a couple of minutes after i start the program.</p>
  
  <pre><code>private static Bitmap bmpScreenShot;
  private static Graphics gfxScreenShot;
  ...
  ...
  
  bmpScreenShot = new Bitmap(Screen.PrimaryScreen.Bounds.Width,
      Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
  gfxScreenShot = Graphics.FromImage(bmpScreenShot);
  gfxScreenShot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X,
      Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, 
      CopyPixelOperation.SourceCopy); // &lt;-- Occurs here a while after ive started the application
  </code></pre>
  
  <p>It runs a couple of times (say 40-80 times) before this happens:</p>
  
  <blockquote>
    <p>Win32Exeption was unhandled: The operation completed successfully</p>
  </blockquote>