コード例 #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);
        }
コード例 #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);
     }
 }