Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in .NET FTP by (200 points)
Hi, I have a program that use SecureFTPConnection to send file. In the main form I have a FTPStatusBar. At run time I create a new connection and attach a FTPstatusbar and logfile. The tranfer is normally completed but the status bar don't show anything. In the logfile I have no log write. FTPStatusbar work only with FTPConnection object put in the main form ?

ftpObject.ServerAddress = mFTPServer
ftpObject.UserName = mFTPUser
ftpObject.Password = mFTPPassword
ftpObject.ServerPort = mFTPPort
ftpObject.Protocol = mFTPProtocol
ftpObject.LogFile = "c:\logfile.txt"
FTPStatusbar.Connection = ftpObject
ftpObject.Connect()
ftpObject.UploadFile(strFileSource, strFileDestination, False)
ftpObject.close

Thanks Filippo

1 Answer

0 votes
by (51.6k points)
It's probably because the GUI thread is locked. Try using BeginUpload instead.

- Hans (EnterpriseDT)

Categories

...