Forum > Networking and Web Programming
indy ftp client - listing files (SIGSEGV)
(1/1)
seba22:
Welcome,
I'm learning how to use indy ftp to make simple connection with my server.
Now i would like to get list of files in directory.
--- Code: ---procedure TForm1.Button1Click(Sender: TObject);
var
numFiles,i:integer;
aFilesftp: array of string;
abc:TStringList;
begin
ftp.Username:='xxxxl';
ftp.host:='xxxx';
ftp.Password:='xxxx';
ftp.Connect;
abc.Create;
ftp.ChangeDir( '/' );
ftp.List(abc,'*.*',true);
end;
--- End code ---
(compile without error)
It throw crash and "SIGSEGV" error.
(open only assembler window, no hint what may be wrong)
Can someone show me where i make mistake ?
Regards
marcov:
Has probably nothing to do with Indy, but with how you create classes.
try abc:=TStringlist.Create;
seba22:
Thank Yout,
Confirmed, that's help ;)
Regards
Navigation
[0] Message Index