ClusterClientAppTester/Program.cs
/// <summary>
/// The main entry point for the application.
/// </summary>
The main entry point for the application.
The main entry point for the application .
[STAThread]
        static void Main()
        {
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                AppDomain currentDomain = AppDomain.CurrentDomain;
                currentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler);
                Program.form = new Form1();
                Application.Run(Program.form);
            }
            catch (Exception ex)
            {
                System.IO.File.WriteAllText("log.txt", ex.Message);
                Program.form.ErrorAlert(ex.Message);
            }
        }
[ STAThread ] static void Main ( ) { try { Application . EnableVisualStyles ( ) ; Application . SetCompatibleTextRenderingDefault ( false ) ; AppDomain currentDomain = AppDomain . CurrentDomain ; currentDomain . UnhandledException += new UnhandledExceptionEventHandler ( MyHandler ) ; Program . form = new Form1 ( ) ; Application . Run ( Program . form ) ; } catch ( Exception ex ) { System . IO . File . WriteAllText ( " " , ex . Message ) ; Program . form . ErrorAlert ( ex . Message ) ; } }
The main entry point for the application.
The main entry point for the application .