System overflow with simple arithmetic?
For some weird reason I get a system overflow with this:
[php]
Public Class Form1
Dim x As Integer = 2
Dim value As Integer = 0
Private Sub c()
a:
If 1 + 1 = x Then
value = value + 4
End If
GoTo a
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
c()
Timer1.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label2.Text = value
End Sub
End Class
[/php]
PS. im back.
[php]
Public Class Form1
Dim x As Integer = 2
Dim value As Integer = 0
Private Sub c()
a:
If 1 + 1 = x Then
value = value + 4
End If
GoTo a
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
c()
Timer1.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label2.Text = value
End Sub
End Class
[/php]
PS. im back.


