Results 1 to 6 of 6

Thread: Calling QSqlDatabase::addDatabase from not main thread causes SIGSEGV

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Calling QSqlDatabase::addDatabase from not main thread causes SIGSEGV

    SQL module is NOT thread safe.
    Connection name must be unique for every thread.

    P.S.

    While loop waiting for db open is "never ending loop" if they are having connecting problems.
    Last edited by Lesiok; 6th May 2015 at 09:57.

Similar Threads

  1. Replies: 1
    Last Post: 28th March 2012, 18:58
  2. Replies: 0
    Last Post: 2nd December 2011, 19:52
  3. Replies: 5
    Last Post: 22nd February 2011, 21:21
  4. Replies: 9
    Last Post: 28th November 2009, 20:31
  5. Replies: 16
    Last Post: 7th October 2009, 08:17

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.