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:"soonic" (xxsoon..@op.pl)
Date:Wed, 2 Jan 2008 22:34:13

>
> 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

NO

> 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.

it's happening inside of DisconnectServer() if you meant that. There must be
something wrong.
I also have another button to exit my application and when I press this
button then I get the same message error.

Just it looks like that:

procedure TMainForm.CloseBtnClick(Sender: TObject);
begin
   Application.Terminate;
end;

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive