Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Indy 9 (DevSnapshopt) and TIdFtp List

www.cryer.info
Managed Newsgroup Archive

Indy 9 (DevSnapshopt) and TIdFtp List

Subject:Indy 9 (DevSnapshopt) and TIdFtp List
Posted by:"Matthias" (matthias.nospam@gmx.net)
Date:Thu, 3 Aug 2006 23:25:33

Hi out there,

I am having some problems using the ftp component with the current
devSnapshot.

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.

It seems to work if I uncomment the connected, but I am not quite sure if
this is the right solution because obviously its really intended to be
commented.

    // RLebeau - don't call Connected() here!  ReadBuffer() already
    // does that internally. Calling Connected() here can cause an
    // EIdConnClosedGracefully exception that breaks the loop
    // prematurely and thus leave unread bytes in the InputBuffer.
    // Let the loop catch the exception before exiting...
    while {Connected and} (LWorkCount > 0) do begin //matt
      i := Min(LWorkCount, LBufSize);
      //TODO: Improve this - dont like the use of the exception handler
      //DONE -oAPR: Dont use a string, use a memory buffer or better yet the
buffer itself.
      try

I also got the problem using the ftp client that comes with the indy 9
demos.

thanks for your help.

Matthias

Replies:

www.cryer.info
Managed Newsgroup Archive