Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: Indy 9 (DevSnapshopt) and TIdFtp List
| Subject: | Re: Indy 9 (DevSnapshopt) and TIdFtp List |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Thu, 3 Aug 2006 15:33:06 |
"Matthias" <matthias.nospam@gmx.net> wrote in message
news:44d269cf$1@newsgroups.borland.com...
> Everytime I call the list-Method the program hangs. So I started debugging
> it and found out that it got trapped in the unit IdTcpConnection in a
while
> loop.
That is already a known issue.
Inside of ReadStream's loop, change this code:
if not (E is EIdConnClosedGracefully) or not AReadUntilDisconnect then
begin
raise;
end;
To this instead:
if (E is EIdConnClosedGracefully) and AReadUntilDisconnect then begin
Break;
end else begin
raise;
end;
Gambit