Jump to content


Photo

IFTPConnection::DownloadFileEx keep file locked


  • Please log in to reply
6 replies to this topic

#1 vss

vss
  • Members
  • 6 posts

Posted 03 March 2011 - 01:55 PM

Hello,

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.


Thanks.

#2 mb

mb

    Developer

  • Administrators
  • 11520 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 03 March 2011 - 02:08 PM

Hello.
What is your license key id and what version of the FTP Library are you using?

#3 vss

vss
  • Members
  • 6 posts

Posted 03 March 2011 - 03:49 PM

I'm using latest version 2.0.111.0. id:400081860

#4 mb

mb

    Developer

  • Administrators
  • 11520 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 03 March 2011 - 04:08 PM

Thank you. Can you provide a sample (C#/C++/VB.NET) which reproduces the problem?

#5 vss

vss
  • Members
  • 6 posts

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.


Thanks

#6 mb

mb

    Developer

  • Administrators
  • 11520 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 04 March 2011 - 06:43 PM

I have sent you the new version of sfFTPLib by email.

#7 vss

vss
  • Members
  • 6 posts

Posted 08 March 2011 - 09:52 AM

problem is fixed in 114, thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users