Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Don't use QThread but still get QThread::start: Failed to create thread (The access code is invalid.)
Qt 6.12 LTS is out! See what's new in the release blog

Don't use QThread but still get QThread::start: Failed to create thread (The access code is invalid.)

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Ziaddin
    wrote on last edited by
    #1

    Hi,

    I have developed an application that has to get data from a webservice and populate a database, hence I am extensively using Qt Network api. However after sometime I get QThread::start: Failed to create thread (The access code is invalid.). I get this error even though I am not using any QThread. Please help.

    I have class c1 that has list of class c2 that has list of class c3 that has list of class c4

    Average mapping is as follows

    1 c1: 2 c2
    1 c2: 20 c3
    1c3: 15c4

    To get data for any class, on an average, I have to make 2 calls to the webservice. Each class has its own QNetworkManager and each webservice call has its own QNetworkReply.

    However nowhere I am using QThread

    Also I have made the call sequential in the sense that I don't call next c4 till I finish the current c4, and so on for c3, c2, c1,

    Regards

    Zia

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mahd96
      wrote on last edited by
      #2

      did you file any solution?

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Install an own message handler, set a breakpoint there and take a lookt at the backtrace to see where the warning comes from. Don't think it's a Qt internal problem.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        3

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt
        • Unsolved