Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Aug : IdTCPServer hangs when stopped

www.cryer.info
Managed Newsgroup Archive

IdTCPServer hangs when stopped

Subject:IdTCPServer hangs when stopped
Posted by:"Gerhard Venter" (gerhard.vent..@comtronic.com)
Date:Fri, 19 Aug 2005 15:18:18

When I set Active to true when I there are clients connected to the server,
it hangs. Is this normal behavior or do I need to do something? I even tried
to step through the threads and issue a disconnect for each but it makes no
difference.

//Disconnect all clients
ClientList := Self.Contexts.LockList;
for i := 0 to ClientList.Count -1 do
TIdContext(ClientList[i]).Connection.Disconnect;
Self.Contexts.UnlockList;

Active := False;

Any ideas?
Thank you
Gerhard

Replies:

www.cryer.info
Managed Newsgroup Archive