title: generic error occurred in GDI+ during System.Drawing
body: <p>I run a winform application. During the last couple of weeks I occasionally receive:
  <em>System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.</em></p>
  <p>Full stack trace shows:</p>
  <pre><code>*System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
     at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
     at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
     at System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect)
     at System.Windows.Forms.SplitContainer.RepaintSplitterRect()
     at System.Windows.Forms.SplitContainer.ResizeSplitContainer()
     at System.Windows.Forms.SplitContainer.OnLayout(LayoutEventArgs e)
     at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
     at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
     at System.Windows.Forms.Control.OnResize(EventArgs e)
     at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
     at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
     at System.Windows.Forms.Control.UpdateBounds()
     at System.Windows.Forms.Control.WmWindowPosChanged(Message&amp; m)
     at System.Windows.Forms.Control.WndProc(Message&amp; m)
     at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
     at System.Windows.Forms.ContainerControl.WndProc(Message&amp; m)
     at System.Windows.Forms.SplitContainer.WndProc(Message&amp; msg)
     at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
     at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
     at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)*
  </code></pre>
  <p>I saw threads referring to this exception when trying to save a bitmap, but I'm not trying to save anything here.</p>
  <p>Any ideas?</p>