XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Jun 23日 11:09

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2015年 Dec 8日 06:59 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 480
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 2015年 Dec 16日 08:39, edited 1 time in total.

Top
 Profile  
 
PostPosted: 2015年 Dec 16日 08:39 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 480
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: Google [Bot] and 14 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