Problem with TIdFTP.List, Indy 9, Delphi 7

Giganews Newsgroups
Subject: Problem with TIdFTP.List, Indy 9, Delphi 7
Posted by:  news.wi.rr.com (aols…@bizwi.rr.com)
Date: Mon, 31 Jul 2006

I just downloaded the latest dev snapshot of Indy 9 today (7/31/2006).

I had an existing project that used 9.0.18, and was working just fine.  I
was going to make some revisions to it, so i thought i might as well update
my Indy installation w/ the latest source.

With that change, the program now literally hangs when i call TIdFTP.List.
Here is a snippet of code:

    with FTP1 do
          try
            Connect;
            try
                ChangeDir('outgoing');
                xmllist.Clear;
                ftp1.List(XMLList,'*.xml',false);
            finally
                    Disconnect;
            end;
          except
                ShowMessage('Unable to connect to FTP server.');
          end;

The list command hangs, and doesn't return or raise an exception.

Alan

Replies