Cannot connect to server - WeOnlyDo Discussion board

Cannot connect to server (wodSFTP / wodSFTP.NET / wodSFTPdll)

by freedom39, Thursday, March 19, 2015, 14:20 (981 days ago) @ Jasmine

if I add the line
Memo2.Lines.Add(TimeToStr(Time)+'>>'+wodsftp1.ErrorText[wodsftp1.LastError]+' '+inttostr(wodsftp1.LastError));

I get this :
8:17:41 AM>>Connecting to server
8:17:41 AM>>Disconnected from server
8:17:41 AM>>Unrecognized Error
8:17:41 AM>>Unrecognized Error. -1


the events I am using is :

procedure TForm1.wodSFTP1StateChange(ASender: TObject; OldState: TOleEnum);
begin
Memo2.Lines.Add(TimeToStr(Time)+'>>'+wodsftp1.StateText[wodsftp1.State]);
end;


Complete thread: