Results 1 to 9 of 9

Thread: Does QDataWidgetMapper lock sqlite and prevent write by other applications?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Does QDataWidgetMapper lock sqlite and prevent write by other applications?

    This is a description of the default locking mechanism: https://www.sqlite.org/lockingv3.html#rollback
    You might get this behaviour on write if the temporary files Sqlite uses to ensure consistency cannot be created/written in the location the database is in. This will be the case on Windows if the database is in the Program Files folder.
    You might get this behaviour if a separate process (possibly thread) has a long running write to the same database.

    If you can reproduce this with only a single process accessing the file please post a complete, minimal program that reproduces it.
    Last edited by ChrisW67; 3rd March 2014 at 22:47.

Similar Threads

  1. Replies: 1
    Last Post: 25th April 2013, 14:55
  2. Replies: 2
    Last Post: 14th November 2011, 11:24
  3. sqlite read lock.
    By gilgm in forum Qt Programming
    Replies: 6
    Last Post: 18th June 2010, 05:58
  4. sqlite write security
    By lesat in forum Qt Programming
    Replies: 0
    Last Post: 28th April 2010, 05:05
  5. SQLite + journal + lock
    By NoRulez in forum Qt Programming
    Replies: 4
    Last Post: 14th December 2009, 08:25

Tags for this Thread

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.