在x64的form_load中忽略了异常 [英] Exceptions ignored in form_load for x64
问题描述
当我在C#应用程序中从form_load中抛出一个异常,当平台是x64时,它不起作用。 (它按照x86的预期运行)
当我浏览代码时,我得到了抛出异常的行,然后立即跳到timer_Tick。 p>
当我创建一个新项目并将此行添加到form_load时:
抛出新的System.Exception(oops!);
对于x86,它按预期崩溃。对于x64,它不会崩溃。
有没有办法让应用程序实际从64位的form_load中抛出?
Nevermind。看起来像是这个臭名昭着的臭虫黑洞...
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...
这篇关于在x64的form_load中忽略了异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!