Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: how to check connection?

www.cryer.info
Managed Newsgroup Archive

Re: how to check connection?

Subject:Re: how to check connection?
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Sun, 30 Dec 2007 22:18:57

"soonic" <xxsoonic@op.pl> wrote in message
news:4776b0e6$1@newsgroups.borland.com...

> I get quickly error when I just press a button to disconnect:
> '....raised exception class EIdClosedSocket with message Disconnected...'

I would expect that if you are having your local client connect to your
local server.  Setting the Active property of a server to false disconnects
any clients that are connected to it.  Your client reading thread is already
disconnecting the client, and then your button handler is trying to
disconnect it again a second time.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive