Re: TCPServer.Active=false (Indy10)

Giganews Newsgroups
Subject: Re: TCPServer.Active=false (Indy10)
Posted by:  Chad Z. Hower aka Kudzu (cp…@hower.org)
Date: Fri, 26 Nov 2004

"Inter-biz" <in…@REMOVEinter-biz.hr> wrote in
news:74338E546CB5E240in…@REMOVEinter-biz.hr:
>      for i:=TCPServer.Contexts.LockList.Count-1 downto 0 do
>      begin
>          Cont:=TIdContext(TCPServer.Contexts.LockList.Items[i]);
>          Cont.Connection.Disconnect;
>      end;
>      TCPServer.Contexts.Clear;
>      TCPServer.Contexts.UnLockList;

YOu are using LockList totally incorrect. You have to store teh result, uo
cant just call it over and over.

Replies

In response to

TCPServer.Active=false (Indy10) posted by Inter-biz on Wed, 24 Nov 2004