Growing Pains

Giganews Newsgroups
Subject: Growing Pains
Posted by:  Sam (sa…@invomax.com)
Date: Sat, 14 Feb 2004

Hello,

I just upgraded Indy from 8 to 9. When I run my app, I still connect ok, and
I switch folders ok.  When I try and do a list command I get an error that
Indy exited gracefully?  It is the same source code that has been working
fine with Indy 8 for months.

begin
    with IdFtp1 do
    begin
      Host:=Ftp_url_var;
      UserName:=Ftp_id_var;
      Password:=Ftp_password_var;
    end;

    if IdFtp1.Connected <> True then
    begin
        messagedlg('Unable to make connection.  Please verify you are on the
internet.',mterror,[mbok],0);
        exit;
    end;

    download_files:=TIDHeaderList.Create;
    download_files.CaseSensitive:=false;
    target_date_str_var  :=formatdatetime('yymmddhh',now);
    IdFtp1.List(Download_Files,target_date_str_var+'*.Dat',false);

Thanks
Sam

Replies