From 8e50d971261f7a75a8eaf335a269fd83b5e04254 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 14 Jan 2006 17:01:47 +0000 Subject: [PATCH] Fixed exception on startup because the splash screen was initialized too early in release builds (creating forms in a static constructor is not a good idea). git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@989 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- src/Main/StartUp/Project/Dialogs/SplashScreen.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Main/StartUp/Project/Dialogs/SplashScreen.cs b/src/Main/StartUp/Project/Dialogs/SplashScreen.cs index a1c26d0944..0b8a69ac56 100644 --- a/src/Main/StartUp/Project/Dialogs/SplashScreen.cs +++ b/src/Main/StartUp/Project/Dialogs/SplashScreen.cs @@ -19,13 +19,16 @@ namespace ICSharpCode.SharpDevelop { public const string VersionText = "SharpDevelop 2 build " + RevisionClass.Revision; - static SplashScreenForm splashScreen = new SplashScreenForm(); + static SplashScreenForm splashScreen; static ArrayList requestedFileList = new ArrayList(); static ArrayList parameterList = new ArrayList(); Bitmap bitmap; public static SplashScreenForm SplashScreen { get { + if (splashScreen == null) { + splashScreen = new SplashScreenForm(); + } return splashScreen; } }