Changeset 2263


Ignore:
Timestamp:
10/30/2010 8:54:22 AM (4 years ago)
Author:
lowjoel
Message:

Fix the "Eraser cannot connect to the running instance for erasure" message when we need to start a new instance. This is because of a race condition when starting the new instance: the Frame is initialised before the remote server is started so WaitForInputIdle? returns before the server is set up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0/Eraser/Program.cs

    r1945 r2263  
    185185            } 
    186186 
    187             //Create the main form 
    188             program.MainForm = new MainForm(); 
     187            //Respond to our command-line parameters. 
    189188            bool showMainForm = true; 
    190189            foreach (string param in program.CommandLine) 
     
    207206            //Run the eraser client. 
    208207            eraserClient.Run(); 
     208 
     209            //Create the form. 
     210            program.MainForm = new MainForm(); 
    209211            return showMainForm; 
    210212        } 
     
    12481250                        Process eraserInstance = Process.Start( 
    12491251                            Assembly.GetExecutingAssembly().Location, "--quiet"); 
    1250                         Thread.Sleep(0); 
    12511252                        eraserInstance.WaitForInputIdle(); 
    12521253 
Note: See TracChangeset for help on using the changeset viewer.