[Mono-bugs] [Bug 414446] New: Font cannot deserialized from string

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 4 14:24:03 EDT 2008


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: mono-bugs at lists.ximian.com
        ReportedBy: kobruleht2 at hot.ee
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list