Hello
When run (F5 Debug) a Windows Form application I'm working with, there is some exceptions that are not cacthed by CLR debbuger. But the same code in a Console Application every exceptions are cacthed.
Below, I post 2 simple code examples with errors.
Code example #1
Code example #2Code:Sub Main() Dim var(6) As Integer var(8) = 33 <------- EXCEPTION End Sub
This is important: note that in Console App these exceptions are captured by CLR debuuger, but in Windows Form App NOT !!! That's my problem.Code:Sub Main() Dim Pila As New Stack(Of Integer) Pila.Push(5) Pila.Push(9) Pila.Push(3) Pila.Push(CInt("hello")) <------ EXCEPTION End Sub
I attached my default Debug menu - Exceptions configuration.
exceptions.jpg
Thanks!!!




Reply With Quote