indy ftp client - listing files (SIGSEGV) lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- seba22 · 2011-01-08 11:50 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: [Select]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;  (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 · 2011-01-08 12:37 Has probably nothing to do with Indy, but with how you create classes. try abc:=TStringlist.Create; ---------------------------------------------------------------------- seba22 · 2011-01-09 20:49 Thank Yout, Confirmed, that's help Regards