Browse Source

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
shortcuts
Daniel Grunwald 20 years ago
parent
commit
8e50d97126
  1. 5
      src/Main/StartUp/Project/Dialogs/SplashScreen.cs

5
src/Main/StartUp/Project/Dialogs/SplashScreen.cs

@ -19,13 +19,16 @@ namespace ICSharpCode.SharpDevelop @@ -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;
}
}

Loading…
Cancel
Save