title: Out of memory exception
body: <p>I am getting out of memory exception occasionally during program startup.  The stacktrace is given below. I am getting this crash only at customer machine. </p>
  
  <p><em><strong>What steps should I follow to identify the root cause?</em></strong></p>
  
  <pre><code>[369][4/29/2011 18:32:15:343]-ERR -[ThreadId = 7916, UIFramework_ICEVisionPro_GUIExceptionHandler.LogException]-System.OutOfMemoryException: Out of memory.
  
     at System.Drawing.Graphics.FromHdcInternal(IntPtr hdc)
  
     at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
  
     at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
  
     at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
  
     at System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle)
  
     at System.Windows.Forms.Control.WmPaint(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.UserControl.WndProc(Message&amp; m)
  
     at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
  
     at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m) 
  </code></pre>