Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.7k views
in .NET FTP by (200 points)
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

1 Answer

0 votes
by (162k points)
Call Logger.Shutdown().

Categories

...