Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Value passed to WorkerScript is undefined only on the second time the WorkerScript is started
Forum Updated to NodeBB v4.3 + New Features

Value passed to WorkerScript is undefined only on the second time the WorkerScript is started

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlworkerscriptundefined
2 Posts 2 Posters 597 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.
  • L Offline
    L Offline
    larkei15
    wrote on 11 Sept 2018, 21:45 last edited by
    #1

    Hello all,

    I am having a very strange issue with a WorkerScript. I have to process data from 2 database tables and I am using a WorkerScript for each table so I don't lock up the main thread. Now, the way I am passing data to both WorkerScripts is identical, only the content of the tables is different. I am passing the data into the Workerscripts with a ListModel, and as I stated in the title, it works every time, except for the second time specifically in one of the two WorkerScripts.

    So, these WorkerScripts are called every time a certain type of button is pressed, and thus they can be started multiple times. It is very strange how despite the same code being executed, it fails in only one WorkerScript and it fails consistently on the second try. Is this a bug, or am I missing something?

    Thanks,
    Keith

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 12 Sept 2018, 02:59 last edited by
      #2

      Any sample code to check on this ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      1

      2/2

      12 Sept 2018, 02:59

      • Login

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