Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 C# 应用程序中从 form_load 抛出异常时,当平台为 x64 时它不起作用。(它按 x86 的预期工作)
当我单步执行代码时,我到达了它抛出异常的那一行,然后它立即跳转到 timer_Tick。
当我创建一个新项目并将这一行添加到 form_load 时: throw new System.Exception("oops!");
对于 x86,它按预期崩溃。对于 x64,它不会崩溃。
有什么方法可以让应用程序真正从 64 位的 form_load 中抛出?
没关系。看起来这掉进了 MS 已知 bug 的黑洞……
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=357311&wa=wsignin1.0