Exemplo n.º 1
0
        public Process Start(string filename, string workingDirectory, string arguments)
        {
            InitDebugger(GetProgramVersion(filename));
            Process process = Process.CreateProcess(this, filename, workingDirectory, arguments);

            AddProcess(process);
            return(process);
        }
Exemplo n.º 2
0
 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);
     }
 }