Joined: July 29th, 2013, 9:13 am Posts: 609
|
I have added the following code to a clock widget to update the second hand. The datetime core operates at a 0.1s interval and calls this routine.
function updateTime() { var theDate = new Date();
var theSeconds = theDate.getSeconds(); var theMilliseconds = theDate.getMilliseconds(); var useSeconds = Math.round(10 * (theSeconds + (theMilliseconds / 1000))) / 10; secondHand.RotateAngle = (useSeconds * 6) % 360; }
Since adding this routine I have experienced two hangs/lockups of the clock widget, only resolved by killing the Xwidget engine. The widget runs fine in debug, no errors, it is only acting strange when the widget was running normallly.
Anyone experienced the same when using a small interval in Xwidgets?
Last edited by yereverluvinuncleber on December 16th, 2015, 8:39 am, edited 1 time in total.
|
|