Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: how to check connection?
| Subject: | Re: how to check connection? |
| Posted by: | "soonic" (xxsoon..@op.pl) |
| Date: | Tue, 1 Jan 2008 13:04:24 |
> 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.
>
My DisconnectServer() procedure is called only by pressing a button. I
disabled other possible calls. The problem still occurs. I also disabled
this part of "if ReadingThread <> nil then" and it didn't change anything.
Finally, when I do just Application.Terminate (no call for
DisconnectServer() ), that message also occurs. My server application starts
fine, it automatically activates, there is a built in part of client's code,
so already one client is connected and when it's coming to
disconnectserver() my application behaves strange. Any other suggestions?