From e0b032c7eff9d6edb6057d85f961d73153143e82 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Fri, 5 Dec 2014 23:54:01 -0800 Subject: [PATCH] Don't try to invoke until the handle is created (is this the WRONG way to do this\?) --- .../SplashScreenWindow.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/SplashScreenWindow.cs b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/SplashScreenWindow.cs index 82daf436..ac585ab6 100644 --- a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/SplashScreenWindow.cs +++ b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/SplashScreenWindow.cs @@ -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()