[Mono-bugs] [Bug 677265] New: Shstem.Windows.Threading.DispathcerTimer does not trigger.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Mar 6 21:43:12 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=677265

https://bugzilla.novell.com/show_bug.cgi?id=677265#c0


           Summary: Shstem.Windows.Threading.DispathcerTimer does not
                    trigger.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: cometliao at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.33 Safari/534.3

using System;
using System.Windows.Threading;

class MainClass
{
    public static void Main()
    {
        DispatcherTimer timer = new DispatcherTimer();
        timer.Interval = new TimeSpan(0, 0, 1);
        timer.Tick += (sender, e) => Console.WriteLine(DateTime.Now);
        timer.Start();
        Dispatcher.Run();
    }
}


mono test.exe

Reproducible: Always

Steps to Reproduce:
1.mcs test.cs /r:WindowsBase.dll
2.mono test.exe

Actual Results:  
the console outputs nothing.

Expected Results:  
the console outputs datetime every second.

C:\>mono a.exe 
seems not tigger the timer, 
C:\>a.exe 
does.

-- 
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