On this PC where I'm testing version 4.7c I noticed an issue with 
event time. The script below updates an active button id=clock's 
label once a minute. While that's worked flawlessly up to version 4.7 
included, with version 4.7c, it shows considerably slower times 
compared to the system clock, after a few hours powerpro uptime. Has 
anyone noticed something similar? My powerpro 4.7c runs with the 
default new performance setting.

; -----------------------------------------------
;: @Clock - update Clock display once a minute
; -----------------------------------------------
@Clock
static evClock
global _lastError_
if (! event.exists(evClock) )
  evClock=event.create(60,0,cb("@Clock"))
local t=formatdate(gvMyConf["formatdate"],date)++" "++;;+
formattime(gvMyConf["formattime"],time)
t[?"(?#g)\s*off\s*"]=""
exec onerror clear //unsafe to set _lastError_ in event thread but..
hMyActiveBar.setlabel("clock",ifelse(gvMyConf["layout"]!="left",t,""))
if ("" != _lastError_)
  evClock = event.destroy(evClock)
quit(t) 

Reply via email to