M
MR
i am creating a new thread and trying to redirect the standard error as
follows:
p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo = psi; //parameter string
p.Start();
string stdError = p.StandardError.ReadToEnd();
i get the following InvalidOperationException:
StandardError has not been redirected
am i leaving out a step or two?
thanks
m
follows:
p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo = psi; //parameter string
p.Start();
string stdError = p.StandardError.ReadToEnd();
i get the following InvalidOperationException:
StandardError has not been redirected
am i leaving out a step or two?
thanks
m