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:
    Sub Main()
        Dim var(6) As Integer
        var(8) = 33   <------- EXCEPTION
    End Sub
Code example #2
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
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.

I attached my default Debug menu - Exceptions configuration.

Name:  exceptions.jpg
Views: 366
Size:  67.2 KB

Thanks!!!