x64 的 form_load 中忽略异常
当我在 C# 应用程序中从 form_load 抛出异常时,当平台为 x64 时,它不起作用。 (它的行为与 x86 的预期相同)
当我单步执行代码时,我到达抛出异常的行,然后它立即跳转到timer_Tick。
当我创建一个新项目并将此行添加到 form_load 时: 抛出新的 System.Exception(“哎呀!”);
对于 x86,它会按预期崩溃。对于 x64,它不会崩溃。
有没有办法让应用程序在 64 位上真正从 form_load 抛出?
When I throw an exception from form_load in my C# application it doesn't work when the platform is x64. (it acts as expected for x86)
When I step through the code, I get to the line where the exception it thrown, then it immediately jumps to timer_Tick.
When I create a new project and add this line to form_load:
throw new System.Exception("oops!");
For x86 it crashes as expected. For x64 it doesn't crash.
Is there some way to get an application to actually throw from form_load on 64-bit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系。看起来这陷入了 MS 已知错误的黑洞...
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=357311&wa=wsignin1.0
Nevermind. Looks like this fell into the black hole of MS known bugs...
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=357311&wa=wsignin1.0