I am not sure XojoScript is available in a web app...
@AsisPatisahusiwa Simple test//PushButton1 Sub Action() Handles Action Thread1.Run() End Sub //Thread1 Sub Run() Handles Run me.Sleep(100*1000) End Sub
CPU usage: 75%.
Now try this with Thread1.Priority = 4 (or lower, up to 1)
Default priority is 5, higher value gives less processing time.
@Tim P For this specific example subclassing would do the trick. Store
xas a property and print it's value in the Action event handler. Set the period as desired, and for extra accuracy confirm the time between prints before printing.
If i do that, then I need to create a simple parser and then create a class on the fly (Xojo doesn't support that).
I hope XojoScript have Ptr datatype or we can use AddHandler or a Delegate, Or passing object datatype back to Xojo code.
You want to open a new case. The other one is closed now. Just mention in yours that it is apparently a regression, and link to 370.
At any rate, it should be fixed. The only way to get attention from Xojo engineers is a bug report.
In practice, you may want to test with 2015R3, since Travis hill apparently tags it as fixed.
You should attach the one that demonstrates the high CPU usage to your bug report.