Hi,

I'm just starting to use Mono WinForms on MacOSX and I get the following error trying to start up an app:

----------
Mono-INFO: Searching for 'GdipGetGenericFontFamilyMonospace'.
Mono-INFO: Probing 'GdipGetGenericFontFamilyMonospace'.
Mono-INFO: Found as 'GdipGetGenericFontFamilyMonospace'.

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> System.ArgumentException : FontFamily wasn't found.
  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.Windows.Forms.ThemeWin32Classic..ctor () [0x00000]
  at System.Windows.Forms.ThemeClearlooks..ctor () [0x00000]
  at System.Windows.Forms.ThemeEngine..cctor () [0x00000] --- End of inner exception stack trace ---

  at <0x00000> <unknown method>
  at System.Windows.Forms.Control.get_DefaultFont () [0x00000]
  at System.Windows.Forms.Control.get_Font () [0x00000]
  at System.Windows.Forms.Form..ctor () [0x00000]
  at Oscill8.Gui.AppForm..ctor () [0x00000]
  at Oscill8.Gui.AppForm..ctor (System.String [] args) [0x00000]
  at (wrapper remoting-invoke-with-check) Oscill8.Gui.AppForm:.ctor (string[])
  at o8gui_exe.Start.Main (System.String[] args) [0x00000]

** ERROR **: file mini.c: line 8269 (mono_get_lmf_addr): should not be reached
aborting...

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Stacktrace:
--------------

It seems that some default font is not around which it needs to initialize the theme... has anyone run into this for MacOSX trying to run a WinForms app?

Thanks,

Emery



--
Emery Conrad
Department of Mathematics
University of Michigan
4827 East Hall
Ann Arbor, MI 48109-1043
(734) 936-9973
http://www-personal.umich.edu/~emeryc
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to