title: Message=A generic error occurred in GDI+. Cannot pinpoint location in code where error occured
body: <p>There are many variations of this question but I am unable to find the answer I need.  The only thing I have to show is the stack trace (which is similar to other stack traces posted for this question)  From the trace, I cannot determine where in the code this is happening.  At the time, the code should have been updating and adding to several listView controls and doing some file writes.  This answers to this question have run the gamut from resources, file locks, permissions, fonts, multi-threading and various other things but I don't have enough info to get started.  If anyone can shine some light on what this stack is telling me and either provide a solid idea/answer or even a strategy of how to go about diagnosing or trapping the problem, I would be grateful (I believe I have this formatted correctly but apologies if I didn't make it readable enough)</p>
  
  <pre><code>System.Runtime.InteropServices.ExternalException was unhandled
    _HResult=-2147467259
    _message=A generic error occurred in GDI+.
    HResult=-2147467259
    IsTransient=false
    Message=A generic error occurred in GDI+.
    Source=System.Drawing
    ErrorCode=-2147467259
    StackTrace:
         at System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat)
         at System.Drawing.Graphics.MeasureString(String text, Font font, Int32 width)
         at System.Windows.Forms.ThreadExceptionDialog..ctor(Exception t)
         at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
         at System.Windows.Forms.Timer.TimerNativeWindow.OnThreadException(Exception e)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
         at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
         at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
         at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
         at System.Windows.Forms.Application.Run(Form mainForm)
         at Alpha_Strategy_Engine.Program.Main() in c:\Users\Jeffery\Documents\Visual Studio 2013\Projects\Alpha Strategy Engine\Program.cs:line 50
    InnerException: 
  </code></pre>