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:Wed, 2 Jan 2008 13:07:17

"soonic" <xxsoonic@op.pl> wrote in message
news:477bec86@newsgroups.borland.com...

> I press a button, it calls DisconnectServer(), then I get error :
> '....raised exception class EIdClosedSocket with message Disconnected...'

But, you did not say where that exception is actually occuring.  Is it
happening inside the button OnClick handler, or is it happening in the
context of the server thread that is trying to read from a connected client?
Those are very different issues.  If it is happening in the button click,
then that is a problem because it shouldn't be happening there at all.  But
if it is happening inside the thread instead, then that is perfectly normal
behavior since that socket is closed when the server is deactivated but the
thread is still trying to use it.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive