Results 1 to 7 of 7

Thread: OT : QSql - connections fail after a while.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: OT : QSql - connections fail after a while.

    Then you have the database set up very strictly. Just don't close the connection and reuse it. If you don't use multiple threads, it'll be fine. If you do use multiple threads, then simply dedicate one thread to operate on the database and pass all database requests from other threads to the dedicated one.

  2. #2
    Join Date
    Nov 2006
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: OT : QSql - connections fail after a while.

    Cheers wysota. This makes much more sense now.

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.