title: Application Freezes on "StandardOutput.ReadLine()".
body: <p>Application hangs when attempting to call "StandardOutput.ReadLine()".</p>
  
  <p>The code:</p>
  
  <pre><code>ProcessStartInfo startInfo = new ProcessStartInfo("c:\\windows\\system32\\myTesting.exe");
              String s = " ";
  
              startInfo.WindowStyle = ProcessWindowStyle.Hidden;
              startInfo.CreateNoWindow = true;
              startInfo.RedirectStandardInput = true;
              startInfo.RedirectStandardOutput = true;
              startInfo.UseShellExecute = false;
              Process p = Process.Start(startInfo);
              p.StandardInput.WriteLine("list volume\n");
              String f = "";
  
              while (!p.StandardOutput.EndOfStream)
                  {
                      s = p.StandardOutput.ReadLine();
                  }
  </code></pre>
  
  <p>"Deadlock exception"-error occurs sometimes, but not always.</p>