Hi. Recently I got this problem and I don't know why.
Next simple code for example:
There is an exeption in "GetLength( 1)" because the array just have one dimension. So, when the compiler gets there, it just ignore that and every code next to this until finish the Sub block.
If I put a Try Catch statment it works, but if not, it does not interrupt the debbuging and does not show a exception message. So, I don't know where the error is.
What I need?... I need that when I put a Try Catch statment just work, but when I don“t put the Try Catch, the debbuging stops the program and show me the Exception window.
Thanks.
Next simple code for example:
Code:
Public Sub test()
Dim VectorA() As Integer = {1, 2, 3, 4, 5, 6}
For i As Integer = 0 To VectorA.GetLength[B](1)[/B] - 1
(some code)
Next
TextBox2.Text = "GetType = " & VectorA.GetType.ToString
TextBox3.Text = VectorA.GetLength(0).ToString
(other code)
End Sub
If I put a Try Catch statment it works, but if not, it does not interrupt the debbuging and does not show a exception message. So, I don't know where the error is.
What I need?... I need that when I put a Try Catch statment just work, but when I don“t put the Try Catch, the debbuging stops the program and show me the Exception window.
Thanks.
Comment