OutputDataReceived has no data?
mc
4,111
Reputation points
var processInfo = new ProcessStartInfo
{
FileName = _path,
Arguments = " ",
UseShellExecute = false,
RedirectStandardError = true,
RedirectStandardInput = true,
RedirectStandardOutput = true,
CreateNoWindow = true
};
_process.StartInfo = processInfo;
_process.OutputDataReceived += _process_OutputDataReceived;
_process.ErrorDataReceived += _process_ErrorDataReceived;
_process.Start();
_process.BeginOutputReadLine();
_process.BeginErrorReadLine();
but the data is in _process_ErrorDataReceived not _process_OutputDataReceived
why?