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

I can't delete LogFile after dispose connection

by fmenditto » Fri Apr 30, 2010 9:34 pm

Hi, I'm using edtFTPnet/PRO with secureFTPConnection. I set logfile property so I can log FTP communication. After I close the connection and I dispose the connection object, I can't delete log file because it's in use by application. I can delete only end the program:

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

After this I can't delete file until I end the application. Why this ?
Thanks Filippo
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: I can't delete LogFile after dispose connection

by support2 » Fri Apr 30, 2010 10:29 pm

Call Logger.Shutdown().

Who is online

Users browsing this forum: No registered users and 11 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron