Process.Exited is never called, even though EnableRaisingEvents is set to true

前端 未结 2 1562
悲哀的现实
悲哀的现实 2020-12-11 16:58

I have an executable, which runs fine when i run it manually, and it exists as it should with the expected output. But when i run it with the method bellow, the Process.Exit

2条回答
  •  生来不讨喜
    2020-12-11 17:25

    Apparently you have to listen to the StandardOutput stream if you redirected it, otherwise the Process will not exit. It waits for someone to read the output first.

    Process.Exited event is not be called

提交回复
热议问题