https://bugzilla.novell.com/show_bug.cgi?id=414446
Summary: Font cannot deserialized from string
Product: Mono: Class Libraries
Version: 2.0
Platform: Other
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
To reproduce:
1. Run code in Windows Vista.
2. Wait until Messagebox appears
3. Holding down Ctrl button, press C button rapidly 10 times
4. Release Ctrl button
5. Click OK button by mouse.
Observed:
Sometimes unhandled excpetion occurs.
Sometimes messagebox is automatically closed before clicking OK.
using System.Windows.Forms;
using System.Configuration;
using System.Drawing;
class Settings : ApplicationSettingsBase
{
private static Settings defaultInstance =
((Settings)(ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
[UserScopedSettingAttribute()]
[DefaultSettingValueAttribute("Arial, 10pt")]
public Font font
{
get
{
return ((Font)(this["font"]));
}
}
}
class Program
{
static void Main()
{
var res = Settings.Default.font;
MessageBox.Show(res.ToString());
}
}
--
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs