[Mono-dev] WinForms Apps Crash on Mac OS X 10.6

Justin Holewinski shawmishrak at gmail.com
Sun Sep 6 16:03:22 EDT 2009

I'm cross-posting this from mono-winforms-list since I'm not sure if this is
a WinForms or a Mono issue, and the list volume seems to be very low on

I'm having an issue with WinForms on Mac OS X 10.6.  WinForms apps used to
work, but all of a sudden they all crash on start-up.  Even trivial WinForms
apps crash now.  My first thought was the 10.6 upgrade, but I haven't read
of any Mono incompatibilities affecting WinForms.  I've tried uninstalling
and reinstalling Mono, including getting rid of the ~/.mono directory, but
no luck.  I am using the Mono .dmg image, version

I read some older threads regarding font issues and needing X11, but X11 is
installed.  I use it everyday.


using System;
using System.Windows.Forms;

namespace test
  class Test
    public static void Main(string[] args)
      Form f = new Form();




acheron:winforms jholewinski$ gmcs Test1.cs -r:System.Windows.Forms.dll
acheron:winforms jholewinski$ mono Test1.exe

  at (wrapper managed-to-native)
(string,intptr,intptr&) <0x00004>
  at (wrapper managed-to-native)
System.Drawing.GDIPlus.GdipCreateFontFamilyFromName (string,intptr,intptr&)
  at System.Drawing.FontFamily..ctor
(string,System.Drawing.Text.FontCollection) <0x00044>
  at System.Drawing.FontFamily..ctor (string) <0x00015>
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor
(string) <0xffffffff>
  at System.Drawing.Font.CreateFont
  at System.Drawing.Font..ctor
  at System.Drawing.Font..ctor (string,single,string) <0x00024>
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor
(string,single,string) <0xffffffff>
  at System.Drawing.SystemFonts.get_DefaultFont () <0x0003c>
  at System.Windows.Forms.Theme..ctor () <0x00032>
  at System.Windows.Forms.ThemeWin32Classic..ctor () <0x00012>
  at System.Windows.Forms.ThemeEngine..cctor () <0x00085>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined ()
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined ()
  at System.Windows.Forms.Control..ctor () <0x001f3>
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control..ctor
() <0xffffffff>
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor ()
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at System.Windows.Forms.Control..ctor () <0xffffffff>
  at System.Windows.Forms.Control..ctor () <0x00059>
  at System.Windows.Forms.ScrollableControl..ctor () <0x00012>
  at System.Windows.Forms.ContainerControl..ctor () <0x00023>
  at System.Windows.Forms.Form..ctor () <0x00058>
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form..ctor ()
  at test.Test.Main (string[]) <0x00028>
  at (wrapper runtime-invoke) test.Test.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0xffffffff>
Abort trap



Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090906/2c2691b6/attachment.html 

More information about the Mono-devel-list mailing list