Good day I am using a TIdFTP component fom the Indy Clients bar in Delphi 7. Whenever I call the STATUS command my application freezes completely. Below is a copy of the source code that calls the STATUS command:
procedure TForm1.CheckFTPStatus;
var
MyStatusList: TStringList;
i: integer;
begin
if idFTP1.Connected then ListBOx1.Items.Add('CONNECTED');
idFtp1.Status(MyStatusList);
for i:=0 to (idFTP1.DirectoryListing.Count -1) do
Listbox1.Items.Add(idFTP1.DirectoryListing.Items.Data);
end;
Basically what I am trying to do is read the STATUS information of teh FTP Server and store this info in a ListBox component. When the idFTP1.Status(MyStatusList) command is executed the app freezes completely.
Any help on this would surely be appreciated.
Liam
procedure TForm1.CheckFTPStatus;
var
MyStatusList: TStringList;
i: integer;
begin
if idFTP1.Connected then ListBOx1.Items.Add('CONNECTED');
idFtp1.Status(MyStatusList);
for i:=0 to (idFTP1.DirectoryListing.Count -1) do
Listbox1.Items.Add(idFTP1.DirectoryListing.Items.Data);
end;
Basically what I am trying to do is read the STATUS information of teh FTP Server and store this info in a ListBox component. When the idFTP1.Status(MyStatusList) command is executed the app freezes completely.
Any help on this would surely be appreciated.
Liam