OnConnect Event no longer fires - WeOnlyDo Discussion board

OnConnect Event no longer fires (wodFTPServer)

by Bob Perkins, Wednesday, September 12, 2012, 21:10 (4455 days ago)

I have the following code:

FTPSite := TwosSFTP.Create(nil);
FTPSite.OnConnected := Self.FTPSiteConnected;
FTPSite.OnDone := Self.FTPSiteDone;
FTPSIte.Hostname := FTPServer;
FTPSite.login := UserName;
FTPSite.password := Password;
FTPSite.Authentication := authPassword;
FTPSite.ProxyType := proxyNone;
FTPSite.RemotePath := ServerFile;
FTPSite.LocalPath := LocalPath;
FTPSite.Connect;

And the OnConnected event does not get executed. I few months ago this code worked just fine. In fact my boss using it in another program and it works fine. Now in this program it has decided not fire the routine.

Any insight into what I've done wrong is greatly appreciated.


Complete thread: