From 5bf922da0b0512c4286e48e3046c6e7e25b3b2a1 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Sat, 28 Jun 2014 21:19:36 -0400 Subject: [PATCH] Sleep the main thread while initialization executes (this may freeze splash screen, needs further testing) --- CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs index 98ea39bb..9c984bda 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs @@ -645,6 +645,11 @@ namespace UniversalEditor.UserInterface threadLoader.Start(); ShowSplashScreen(); + + while (threadLoader.ThreadState == System.Threading.ThreadState.Running) + { + System.Threading.Thread.Sleep (500); + } } protected virtual void InitializeInternal() {