[Mono-bugs] [Bug 539157] New: ProcessCmdKey() fails in Mono 2.4.2.3 (works in 2.4.2.1)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Sep 14 19:08:50 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=539157
Summary: ProcessCmdKey() fails in Mono 2.4.2.3 (works in
2.4.2.1)
Classification: Mono
Product: Mono: Runtime
Version: 2.4.x
Platform: x86
OS/Version: Red Hat 7.0
Status: NEW
Severity: Major
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: lionel.keene at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.43 Safari/530.5
I believe this is a regression bug when going from 2.4.2.1 to 2.4.2.3. The
following simple WinForms app will fail on RedHat:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace KeyPress
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
switch (keyData)
{
case Keys.F11:
F11ButtonPressed();
break;
case Keys.F12:
F12ButtonPressed();
break;
}
return true;
}
private void F11ButtonPressed()
{
this.Text = "F11 button pressed";
}
private void F12ButtonPressed()
{
this.Text = "F12 button pressed";
}
}
}
Reproducible: Always
Steps to Reproduce:
1. Compile + run above app
2.
3.
Actual Results:
Works on Microsoft runtime, fails on Mono 2.4.2.3 + RedHat i.e. application
locks up.
Expected Results:
WIndow text should change to reflect the key that was pressed.
--
Configure bugmail: http://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