[英]What is "Process finished with exit code 500" ?
When I run App1 project to started another process(App2.exe), the program quickly exited itself, and then I got this information.当我运行 App1 项目以启动另一个进程(App2.exe)时,该程序很快自行退出,然后我得到了这个信息。
"Process finished with exit code 500" “进程以退出代码 500 结束”
Originally, I thought this situation should be very common, but I didn't find the information about this exit code on the search engine.本来以为这种情况应该很常见,但是在搜索引擎上没有找到这个退出码的信息。
What the hell is going on?这到底是怎么回事? I feel very confused.我感到非常困惑。
//App1
using System.Diagnostics;
var app2 = new Process()
{
StartInfo =
{
FileName = "App2.exe",
UseShellExecute = false,
CreateNoWindow = false
}
};
app2.Start();
// App2
while (true)
{
string input = Console.ReadLine();
Console.WriteLine("Input is " + input);
}
Here is the solution, you can reproduce it on your own computer.这是解决方案,您可以在自己的计算机上重现它。
https://github.com/Andy-AO/Shared/tree/master/exit_code_500 https://github.com/Andy-AO/Shared/tree/master/exit_code_500
The above problem occurs when I run it in Rider, but it does not occur when I run it in Visual Studio.我在 Rider 中运行时会出现上述问题,但在 Visual Studio 中运行时不会出现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.