Results 1 to 10 of 10

Thread: file renaming on windows

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Posts
    9
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: file renaming on windows

    Doh! Yes, that was the problem. The file was being opened with a QLockedFile somewhere else in the program. Funny how that didn't stop the operation on Linux!

    Anyway, thank you both very much for your help. I still have some hair left.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: file renaming on windows

    Quote Originally Posted by jdd81 View Post
    Funny how that didn't stop the operation on Linux!
    The reason is simple. Windows uses mandatory locking while Linux uses advisory locking thus it is possible to ignore the lock on Linux but not on Windows (the latter causes inability to reopen a file after a crash of an application holding a lock to the open file).

Similar Threads

  1. Draging a non-existing file to the Windows Desktop
    By klaus1111 in forum Qt Programming
    Replies: 13
    Last Post: 20th September 2007, 11:47
  2. Replies: 3
    Last Post: 4th September 2007, 14:40
  3. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  4. Qt, Windows and cygwin --- crt0.o: No such file ...?
    By TheRonin in forum Qt Programming
    Replies: 1
    Last Post: 27th October 2006, 10:16
  5. QProcess problem with windows batch file
    By bood in forum Qt Programming
    Replies: 11
    Last Post: 6th January 2006, 08:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.