UDP Client Lockup

Ontani

Well-known member
Joined
Mar 3, 2004
Messages
119
Location
Belgium
hey im make an application with a udp client.
but got the problem that the application gets locked up when i click the button btnGetStatus fast after eachother.
is there a way to let the udp client only start if the other one is closed?

my Code:

[VB]
Dim currentPlayers(1, 10) As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
getCurrentStatus()
End Sub

Public Function getCurrentStatus()
Try
Dim udp As New UdpClient("81.11.182.187", "20102")
Dim i, j As Integer
Dim b() As Byte = System.Text.Encoding.Default.GetBytes("
 
yeah i know, i did that, but what if i want to call it as a function, and its called 2 times fast after eachother
 
Back
Top