Dear Sir Essbebe and other fellow forum members. i am encountering a problem named winsock 10054.I found a solution on official MS website for this problem but i can't understand the technacality of the resolution. please help me to overcome this problem. thanks n regards. {To work around this problem, use the Microsoft Visual Basic Standard Error Handling mechanism to catch the error. This workaround is illustrated in the following code snippet: Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim szData As String
On Error Resume Next
Winsock1.GetData szData
If Err Then
' handle the error here
End if
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim szData As String
On Error Resume Next
Winsock1.GetData szData
If Err Then
' handle the error here
End if
End Sub
Use the On Error method around the GetData method of the Winsock Control to capture the error.



LinkBack URL
About LinkBacks
Reply With Quote