Denis,
See if
Re: Winsock is busy long time after disconnecting to remote Thread #
843408 helps.
>I try to write little Client Server app to exchange messages over sockets..
>
>I write server app and Client App..
>
>If the server app accept connection, and then for example - client send "BYE" word and server must close session
>
>I wrote code for server
>
> loSocket.SendData("Bye!" + Chr(13)+Chr(10))
> loSocket.Close()
> This.oWinSock_Server.RemoveObject(cSocketName)
>
>
>But... on client side..
CLOSE event fair.... and lock application.. I put ?"Event fair" to close event to winsock control - it looks like inside DO WHILE cycle..
>
--sb--