Rich Newman

Top-level Exception Handling – Code Listing 2

        static void Main()
         {
             SplashScreen splash = new SplashScreen();
             splash.Show();
             DoLongRunningSetUpStuff();
             splash.Close();
  
             Application.ThreadException += new ThreadExceptionEventHandler(new ThreadExceptionHandler().ApplicationThreadException);
             Application.Run(new MainForm());
         }
  

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.