IFTPConnection::DownloadFileEx keep file locked
Posted 03 March 2011 - 01:55 PM
I have the following problem. I use IFTPConnection::DownloadFileEx to download file, it is downloaded just fine. However even though method returned downloaded file is still locked for some time (i.e. CreateFile on it returns ERROR_SHARING_VIOLATION). Am i doing something wrong, or is it just bug in smartftplib? After some time file becomes unlocked again.
Posted 03 March 2011 - 02:08 PM
What is your license key id and what version of the FTP Library are you using?
Posted 03 March 2011 - 04:08 PM
Posted 04 March 2011 - 11:23 AM
Thank you. Can you provide a sample (C#/C++/VB.NET) which reproduces the problem?
You can download sample C++ (Visual Studio 2010) project here.
Don't forget to enter your ftp login information and ftp remote file info in ftp_test.h
File locking doesn't happen 100% of the time. Sometimes its unlocked sometimes its not.
My test machine is Windows XP Pro SP3.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users