环境.退出挂起
在 C# 中,什么会导致 Environment.Exit(1) 挂起?我从命令行调用我的程序,它最终在空白行上出现一个闪烁的光标。打字没有任何作用。
In C#, what would cause Environment.Exit(1) to hang? I'm calling my program from the command line, and it ends up with a blinking cursor on a blank line. Typing doesn't do anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Environment.Exit 不会挂起应用程序,相反,它立即终止它:
还有其他原因导致您的控制台应用程序挂起,但如果您不添加一些代码,我们无法猜测问题是什么。
The Environment.Exit doesn't hang the application, on the contrary, it terminates it instantly:
There is something else causing your Console application to hang, but we can't guess what is the issue without you adding some code.