在x64的form_load中忽略了异常 [英] Exceptions ignored in form_load for x64

查看:157
本文介绍了在x64的form_load中忽略了异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在C#应用程序中从form_load中抛出一个异常,当平台是x64时,它不起作用。 (它按照x86的预期运行)



当我浏览代码时,我得到了抛出异常的行,然后立即跳到timer_Tick。 p>

当我创建一个新项目并将此行添加到form_load时:
抛出新的System.Exception(oops!);



对于x86,它按预期崩溃。对于x64,它不会崩溃。



有没有办法让应用程序实际从64位的form_load中抛出?

解决方案

Nevermind。看起来像是这个臭名昭着的臭虫黑洞...



https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=357311&wa=wsignin1.0


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?

解决方案

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

这篇关于在x64的form_load中忽略了异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆