ProcessStartInfo hanging on “WaitForExit”? Why?

I have the following code: info = new System.Diagnostics.ProcessStartInfo(“TheProgram.exe”, String.Join(” “, args)); info.CreateNoWindow = true; info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; info.RedirectStandardOutput = true; info.UseShellExecute = false; System.Diagnostics.Process p = System.Diagnostics.Process.Start(info); p.WaitForExit(); Console.WriteLine(p.StandardOutput.ReadToEnd()); //need the StandardOutput contents I know that the output from the process I am starting is around 7MB long. Running it in the Windows console … Read more