I am trying to make it so when winsock gets a dataarrival even it will send the sock to another function in a different module. For instance:
Private Sub Sock_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles Sock.DataArrival
msgbox("1")
DataArrival(Sock)
msgbox("4")
End Sub
DataArrival(ByVal Sock As MSWinsockLib.Winsock)
msgbox("2")
Sock.getdata blah
msgbox("3")
End Function
But for some odd reason once it gets passed to DataArrival all hell breaks loose and the code quits moving. No error, no nothing. I added msgbox's to see where the code quits going and it won't even make it to 2. Any ideas?
Private Sub Sock_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles Sock.DataArrival
msgbox("1")
DataArrival(Sock)
msgbox("4")
End Sub
DataArrival(ByVal Sock As MSWinsockLib.Winsock)
msgbox("2")
Sock.getdata blah
msgbox("3")
End Function
But for some odd reason once it gets passed to DataArrival all hell breaks loose and the code quits moving. No error, no nothing. I added msgbox's to see where the code quits going and it won't even make it to 2. Any ideas?