[Mono-osx] winforms tutorial
Brett Neumann
bneuma@gmail.com
Wed, 13 Apr 2005 17:35:14 -0500
I am also having problems running the winforms tutorial at the cocoa#
wiki.
After compiling and macpacking, I double click the .app bundle in the
Finder, the application immediately crashes and leaves the following in
the Console.app
##############
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.Windows.Forms.ThemeEngine
---> System.ArgumentException: Invalid Parameter. A null reference or
invalid value was found.
in <0x000a0> System.Drawing.GDIPlus:CheckStatus (System.Drawing.Status)
in <0x000c4> System.Drawing.Font:.ctor
(System.Drawing.FontFamily,single,System.Drawing.FontStyle,System.Drawin
g.GraphicsUnit,byte,bool)
in <0x00038> System.Drawing.Font:.ctor
(System.Drawing.FontFamily,single)
in <0x00074> (wrapper remoting-invoke-with-check)
System.Drawing.Font:.ctor (System.Drawing.FontFamily,single)
in <0x00234> System.Windows.Forms.ThemeWin32Classic:.ctor ()
in <0x000b0> System.Windows.Forms.ThemeEngine:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged) System.Windows.Forms.ThemeEngine:get_Current ()
in <0x00010> System.Windows.Forms.Control:get_DefaultFont ()
in <0x0000c> System.Windows.Forms.Control:get_DefaultFont ()
in <0x000a8> System.Windows.Forms.Control:get_Font ()
in <0x00074> MessageBoxForm:InitFormsSize ()
in <0x0006c> (wrapper remoting-invoke-with-check)
MessageBoxForm:InitFormsSize ()
in <0x00040> MessageBoxForm:RunDialog ()
in <0x0006c> (wrapper remoting-invoke-with-check)
MessageBoxForm:RunDialog ()
in <0x00068> System.Windows.Forms.MessageBox:Show (string)
in <0x00014> test:Main ()
##################
any ideas?
Brett Neumann