Whenever I have a procedure with the disconnected command in it like wnsck.close
it always gets disconnected first...Any fixes?
Post some code please as I don't quite follow you.
Its just that any procedure i make it always seems to skip straight to the disconnect before doing the other commands
Quote from: Soul Taker on July 15, 2003, 12:50 AM
Post some code please as I don't quite follow you.
This might actually help, having some of what you're doing.
Try adding a DoEvents before you close the socket
Example:
Socket.Senddata "blah blah blah im leaveing bnet... blah..." & VbCrLf
DoEvents
Socket.Close
Hope that helps...
Like
Cleanslatebot1.Send "Disconnected by " + User
Cleanslatebot1.Disconnect
It seems to disconnect first.....
are you doing CSB? If so why did you post about winsock? Um...heres my code that seems to work fine....
Private Sub disc_Click()
AddChat "Disconnected " & vbNewLine, vbRed
CleanSlateBot1.Disconnect
Form1.lvChannel.ListItems.Clear
End Sub
The same problems goes for winsock
it seems to disconnected before sending the text to bnet...Is there some order of precedence I should know about between sending data and disconnecting?
I hope you realise Nub already answered the question...
Any other way...that doesnt seem to work...
Don't close it until the SendComplete event to fires.
Quote from: Camel on July 16, 2003, 03:20 PM
Don't close it until the SendComplete event to fires.