07-25-2013 02:53 PM - last edited on 07-25-2013 05:58 PM by matthewyongkim
using an example I was able to setup QConcurrentRun & a watcher to create a new thread, process events & update once completed.
The only issue is, when i click the run button in 10.2 i get a pop up error
An internal error occurred during: "Executing run". Invalid thread access
but if i right click on the project folder -> run as -> blackberry c/c++ application the application builds, launches deploys and everything appears to be working correctly.
I've attached a sample project that demonstates the issue & how to process events in other threads somewhat easily
Solved! Go to Solution.
07-25-2013 03:42 PM
07-26-2013 02:38 AM
07-26-2013 08:47 AM - edited 07-26-2013 08:49 AM
I read all the aruments against threads before I proceeded, partly why I chose to use QtConcurrent::run to carry the legwork for me it's supposed to be threadsafe (for the most part), Threading wasn't something I particularly wanted to do (very glad this method was possible) the functions that I'm going to be working with do require some processing to be done at the same time as other functions run, but if it's done on the same thread one process gets delayed by the other causing my feature to not work
07-26-2013 08:59 AM
07-27-2013 11:49 AM
I discovered what was causing the invalid thread warning issue, momentics for some reason created another run configuration titled qdelaunch, after deleting those configs it allows for the run button to be clicked directly from the from the toolbar.