Whenever we close our application, there is an unhandled exception being raised that doesn't give us much detail on it's root cause:
{System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args)
at System.Windows.Forms.WindowsFormsSynchronizationContext.Post(SendOrPostCallback d, Object state)
at System.Windows.Forms.AxHost.ConnectionPointCookie.Finalize()}
I don't see anywhere in our code where we're calling BeginInvoke.
We are calling Invoke but only if InvokeRequired = True.
Has anyone ever seen this before?