Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

VS 2012 CLR Debbuger (F5) ignores some exceptions in Windows Form apps

$
0
0
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.
Attachment 99561

Thanks!!!
Attached Images
 

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>