[Mono-bugs] [Bug 656169] New: Ctrl-C fails to be intercepted on Windows

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Nov 27 10:36:54 EST 2010


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

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


           Summary: Ctrl-C fails to be intercepted on Windows
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: xacc.ide at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: ---


Description of Problem:

Ctrl-C fails to be intercepted on Windows.

Run the following on Windows. 

static void Main(string[] args)
{
  Console.CancelKeyPress += (s, e) => { e.Cancel = true; };
  while (true) Console.ReadLine();
}

Actual Results:

The program exits.

Expected Results:

The program should not exit.

How often does this happen? 

Every time.

Note: This works perfectly under Linux.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list