[Mono-bugs] [Bug 359203] New: Font related exception when trying to run Windows Forms application on Mono-OSX
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Feb 6 09:24:27 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=359203
Summary: Font related exception when trying to run Windows Forms
application on Mono-OSX
Product: Mono: Runtime
Version: 1.2.6
Platform: x86
OS/Version: Mac OS X 10.4
Status: NEW
Severity: Blocker
Priority: P5 - None
Component: interop
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: antonioli at ieee.org
QAContact: mono-bugs at lists.ximian.com
Found By: Development
Created an attachment (id=193424)
--> (https://bugzilla.novell.com/attachment.cgi?id=193424)
Application binary files
I am trying to port a Windows Forms application to mono on Mac OS X.
The application runs fine under Mono on Windows and Mono on Linux (OpenSUSE).
When I try to execute it on OSX I get the exception below.
I am using OS X 10.4.8 and mono 1.2.6_6.
Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for
System.Windows.Forms.WindowsFormsSynchronizationContext --->
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Windows.Forms.ThemeEngine ---> System.ArgumentException:
The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]
at System.Drawing.FontFamily..ctor (GenericFontFamilies genericFamily)
[0x00000]
at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor
(System.Drawing.Text.GenericFontFamilies)
at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000]
at System.Drawing.Font.CreateFont (System.String familyName, Single emSize,
FontStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical) [0x00000]
at System.Drawing.Font..ctor (System.String familyName, Single emSize,
FontStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical) [0x00000]
at System.Drawing.Font..ctor (System.String familyName, Single emSize,
System.String systemName) [0x00000]
at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor
(string,single,string)
at System.Drawing.SystemFonts.get_DefaultFont () [0x00000]
at System.Windows.Forms.Theme..ctor () [0x00000]
at System.Windows.Forms.ThemeWin32Classic..ctor () [0x00000]
at System.Windows.Forms.ThemeEngine..cctor () [0x00000] --- End of inner
exception stack trace ---
at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined ()
[0x00000]
at System.Windows.Forms.Control..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor ()
[0x00000] --- End of inner exception stack trace ---
at System.Windows.Forms.Control..ctor () [0x00000]
at System.Windows.Forms.ScrollableControl..ctor () [0x00000]
at System.Windows.Forms.ContainerControl..ctor () [0x00000]
at System.Windows.Forms.Form..ctor () [0x00000]
at MA.Utility.InterprocessMessages..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) MA.Utility.InterprocessMessages:.ctor
()
at MA.MemopalController..ctor () [0x00000]
at MA.Program.DoRun () [0x00000]
at MA.Program.Main (System.String[] args) [0x00000]
pinco-pallinos-computer:~/Memopal/Debug pincopallino$
--
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