XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently March 28th, 2024, 9:36 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: December 8th, 2015, 6:59 am 
Offline
User avatar

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.

Top
 Profile  
 
PostPosted: December 16th, 2015, 8:39 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
Since those two crashes it hasn't happened since. I have been using Win10 which is turning out to be an unstable crock of shit. I am blaming Win10 for the moment.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 67 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group