public Process Start(string filename, string workingDirectory, string arguments) { InitDebugger(GetProgramVersion(filename)); Process process = Process.CreateProcess(this, filename, workingDirectory, arguments); AddProcess(process); return(process); }
public Process Start(string filename, string workingDirectory, string arguments) { InitDebugger(GetProgramVersion(filename)); lock (ProcessIsBeingCreatedLock) { Process process = Process.CreateProcess(this, filename, workingDirectory, arguments); // Expose a race conditon System.Threading.Thread.Sleep(0); this.Processes.Add(process); return(process); } }