I’m trying to execute a script when a user presses a button in my device thread. I’m currently using:
Application.ExecuteScript(szScriptFilename)
According to the docs this routine must be executed from the UI thread. I’ve tested this out and found it to be true - running it from my DeviceIONotify(..) thread causes
mobu to hang. To get around this I simply set a flag in the device thread telling my UI thread to execute the script, then execute the script in my UI thread.
The problem is when my device’s UI panel is not visible - in this case neither of my UI event idle handlers are called: