加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

vb.net – 第一次机会例外

发布时间:2020-12-16 23:55:37 所属栏目:大数据 来源:网络整理
导读:我有一个在Windows XP下运行完美的项目。 现在我试图在Windows 7下运行它,并在立即窗口下有很多例外。 A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dllA first chance exception of type 'System.
我有一个在Windows XP下运行完美的项目。

现在我试图在Windows 7下运行它,并在立即窗口下有很多例外。

A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in LP_Wizard.exe
A first chance exception of type 'System.ArgumentException' occurred in LP_Wizard.exe
A first chance exception of type 'System.NullReferenceException' occurred in LP_Wizard.exe
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in LP_Wizard.exe
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in LP_Wizard.exe
A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in LP_Wizard.exe

任何想法在Windows 7中的Microsoft.VisualBasic.dll有什么问题,以及我如何纠正这个问题?

非常感谢您的帮助。

发生了什么是调试器可以在任何catch块被击中之前立即“看到”异常(因为“第一次机会”)。没有被catch块处理的任何异常被认为是“第二次机会”异常,并且将会正常断开。

如果这些异常不能阻止您的应用程序的运行,因为它们是未处理的,那么您可能可以。大多数情况下,异常是由代码处理的,这不是问题。输出是简单的Visual Studio,让你知道提出的例外。

看到“Avoiding first chance exception messages when the exception is safely handled”的问题,如果有太多的不能忽视的一些方法来减少这个。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读