Results 1 to 6 of 6

Thread: Windows filesystem sync issues?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2014
    Qt products
    MacOS X Unix/X11

    Default Windows filesystem sync issues?

    I've run into interesting problems using Exiftool 10.10+, Qt 5.5.1 and Windows 10.

    I'm creating temporary file with QTemporaryFile, write there some data, save it, wait untill it's flushed using `FlushFileBuffers()` and afterwards pass this file as arguments file for `exiftool`. Data which I'm writing there is UTF-8 encoded paths to images:

    Qt Code:
    1. if ( {
    2. QStringList exiftoolArguments = createArgumentsList();
    3. foreach (const QString &line, exiftoolArguments) {
    4. argumentsFile.write(line.toUtf8());
    5. argumentsFile.write("\r\n");
    6. }
    7. }
    9. argumentsFile.flush()
    11. // fsync stuff here...
    13. argumentsFile.close()
    14. // starting exiftool with -@ argumentsFile.fileName() parameter here
    15. // also with -charset filename=UTF8
    To copy to clipboard, switch view to plain text mode 

    So the problem is the following: when filenames does not contain Unicode symbols, Exiftool reads images, imports Exif metadata and everything is fine.

    But when filenames contain Unicode symbols, sometimes Exiftool does not catch up them, unless I will insert `QThread::sleep(msec)` call which will make current thread to switch context and possible give ability to sync buffers for other threads (writing to harddrive).

    Exiftool run from cmd line with same file always reads metadata, unless started with QProcess with the way explained before. What can be the issue?
    Last edited by ribtoks; 16th March 2016 at 15:50.

Similar Threads

  1. QtCreator 3.5.1 on Windows 10 - hang issues
    By jojolepirate in forum Qt Tools
    Replies: 0
    Last Post: 5th November 2015, 22:55
  2. QWTPolar & Windows issues
    By aetoni in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2012, 00:30
  3. Build issues on Windows 7 with VS 2008
    By drewpt in forum Installation and Deployment
    Replies: 1
    Last Post: 15th July 2011, 18:35
  4. linux to windows porting issues
    By qtprogrammer12345 in forum Qt Programming
    Replies: 1
    Last Post: 23rd May 2008, 06:45
  5. gtk not working in qt filesystem
    By apulu in forum Newbie
    Replies: 11
    Last Post: 18th April 2008, 10:22

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.