Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

fmenditto

Posts

4

Joined

Sat Apr 24, 2010 8:34 pm

FTP Pro Status Bar and log file

by fmenditto » Sat Apr 24, 2010 8:47 pm

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
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Wed Apr 28, 2010 8:38 am

It's probably because the GUI thread is locked. Try using BeginUpload instead.

- Hans (EnterpriseDT)

Who is online

Users browsing this forum: No registered users and 20 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign