Tengo un proyecto que se ejecuta perfecto en Windows XP.Una excepción de primera oportunidad
Ahora he intentado ejecutarlo bajo Windows 7 y he obtenido muchas excepciones en la ventana Inmediato.
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
Alguna idea de lo malo que Microsoft.VisualBasic.dll
en Windows 7 y cómo puedo corregir este problema?
Muchas gracias por ayuda.
+1. Además, si está desencadenando muchas excepciones y atrapándolas e ignorándolas, podría valer la pena intentar reescribir el código para evitarlo, ya que funcionará mucho mejor. por ejemplo, use un if (cosa! = nulo) antes de la llamada en lugar de un catch (NullPointerException) después. – Paolo
Definitivamente, Paolo. Las excepciones deben ser excepcionales. Por supuesto, si las excepciones están ocurriendo en Microsoft.VisualBasic.dll, probablemente no hay demasiadas cosas que puede hacer, desafortunadamente. :) –
Incluso si la excepción está ocurriendo en Microsoft.VisualBasic.dll, lo más probable es que esté causada por un error en su propio código, en lugar de un error en el código de Microsoft. – MarkJ