Ignore:
Timestamp:
10/30/2010 9:09:14 AM (3 years ago)
Author:
lowjoel
Message:

Forward-port from Eraser 6.0: 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.

Location:
trunk/eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser

  • trunk/eraser/Eraser/Program.cs

    r2247 r2267  
    287287                    Process eraserInstance = Process.Start( 
    288288                        Assembly.GetExecutingAssembly().Location, "/quiet"); 
    289                     Thread.Sleep(0); 
    290289                    eraserInstance.WaitForInputIdle(); 
    291290 
     
    758757            } 
    759758 
    760             //Create the main form 
    761             program.MainForm = new MainForm(); 
    762  
    763             //Decide whether to display any UI 
     759            //Decide whether to display any UI. 
    764760            GuiArguments arguments = new GuiArguments(); 
    765761            Args.Parse(program.CommandLine, CommandLinePrefixes, CommandLineSeparators, arguments); 
     
    772768            //Run the eraser client. 
    773769            eraserClient.Run(); 
     770 
     771            //Create the main form. 
     772            program.MainForm = new MainForm(); 
    774773        } 
    775774 
Note: See TracChangeset for help on using the changeset viewer.