OnConnect Event no longer fires (wodFTPServer)
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.