[Mono-bugs] [Bug 677265] Shstem.Windows.Threading.DispathcerTimer does not trigger.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Mar 7 06:35:01 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=677265
https://bugzilla.novell.com/show_bug.cgi?id=677265#c1
--- Comment #1 from comet liao <cometliao at gmail.com> 2011-03-07 11:35:00 UTC ---
By reading the source, I've found the bug:
System.Windows.Threading.DispatcherTimer
public void Start ()
{
if (timer == null){
long repeat_interval = interval;
if (repeat_interval ==0)
repeat_interval = 1;
// oops...the interval and repeat_inteval should be passed as
milliseconds, but they are Ticks here!
timer = new Timer(new TimerCallback (timer_tick), null, interval,
repeat_interval);
// this fix the bug
// timer = new Timer(new TimerCallback (timer_tick), null, new
TimeSpan(interval), new TimeSpan(repeat_interval));
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list