DesktopX Threading

How to pass that ball?

According to the DesktopX documentation a script object that runs in a different thread cannot access the methods or properties of a script in the main thread.
 
So how do I pass data obtained in the retrieval thread back to the object in the main Object thread loop?
 
I guess I could write it to a file and then send a state change to the master object in order to tell it to read the file but that's a bit of a kludge.
 
Do any of the DesktopX gurus know of a more elegant way of doing this?
10,287 views 0 replies