Chat

It's ok for this I understand but there is an other error :

MarkAsDisconnected()

in

Private Sub DoRead(ByVal ar As IAsyncResult)
Dim intCount As Integer

Try
intCount = mobjClient.GetStream.EndRead(ar)
If intCount < 1 Then
MarkAsDisconnected()
Exit Sub
End If

BuildString(marData, 0, intCount)

mobjClient.GetStream.BeginRead(marData, 0, 1024, _
AddressOf DoRead, Nothing)
Catch e As Exception
MarkAsDisconnected()
End Try
End Sub

Vb mark these line as an error!
 
Back
Top