VB   发布时间:2022-04-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了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”的问题,如果有太多的不能忽视的一些方法来减少这个。

大佬总结

以上是大佬教程为你收集整理的vb.net – 第一次机会例外全部内容,希望文章能够帮你解决vb.net – 第一次机会例外所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。