Don't try to invoke until the handle is created (is this the WRONG way to do this\?)

This commit is contained in:
Michael Becker 2014-12-05 23:54:01 -08:00
parent b856245180
commit e0b032c7ef

View File

@ -75,6 +75,10 @@ namespace UniversalEditor.UserInterface.WindowsForms
internal void InvokeClose()
{
while (!this.IsHandleCreated)
{
System.Threading.Thread.Sleep(500);
}
Invoke(new Action(_InvokeClose));
}
private void _InvokeClose()