Value passed to WorkerScript is undefined only on the second time the WorkerScript is started
-
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 -
Any sample code to check on this ?