OutputDataReceived has no data?

mc 3,746 Reputation points
2023-10-07T09:48:48.46+00:00
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?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,464 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,687 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,131 questions
{count} votes