vb.net – 第一次机会例外

我有一个在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”的问题,如果有太多的不能忽视的一些方法来减少这个。

相关文章

Format[$] ( expr [ , fmt ] ) format 返回变体型 format$ 强...
VB6或者ASP 格式化时间为 MM/dd/yyyy 格式,竟然没有好的办...
在项目中添加如下代码:新建窗口来显示异常信息。 Namespace...
转了这一篇文章,原来一直想用C#做k3的插件开发,vb没有C#用...
Sub 分列() ‘以空格为分隔符,连续空格只算1个。对所选...
  窗体代码 1 Private Sub Text1_OLEDragDrop(Data As Dat...