mono 2.0 RC1 dmg version (problems with Windows.Forms)

View: New views
2 Messages — Rating Filter:   Alert me  

mono 2.0 RC1 dmg version (problems with Windows.Forms)

by matteot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I tried to install on test machine tiger (10.5.2) the dmg version of mono 2.0. A Windows Forms application procudeced the error reported below: It seems that libgdiplus cannot be found. Is gdiplus not included within the dmg package?

Thanks,
Matteo


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.TypeInitializationException: An exception was thrown by the
type initializer for System.Windows.Forms.ThemeWin32Classic --->
System.TypeInitializationException: An exception was thrown by the
type initializer for System.Drawing.KnownColors --->
System.TypeInitializationException: An exception was thrown by the
type initializer for System.Drawing.GDIPlus --->
System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/2.0/lib/libgdiplus.dylib
 at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
 at System.Drawing.GDIPlus..cctor () [0x00000]
 --- End of inner exception stack trace ---
 at System.Drawing.KnownColors..cctor () [0x00000]
 --- End of inner exception stack trace ---
 at System.Drawing.Color.get_Black () [0x00000]
 at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000]
 --- End of inner exception stack trace ---
 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]

Re: mono 2.0 RC1 dmg version (problems with Windows.Forms)

by Christoph Standler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I had that problem too, but on a machine with Mac OSX 10.4.11 (Tiger). I solved it by installing and updating the X11-Server.

Hope it helps & Regards

Chris


matteot wrote:
Hi, I tried to install on test machine tiger (10.5.2) the dmg version of mono 2.0. A Windows Forms application procudeced the error reported below: It seems that libgdiplus cannot be found. Is gdiplus not included within the dmg package?

Thanks,
Matteo


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.TypeInitializationException: An exception was thrown by the
type initializer for System.Windows.Forms.ThemeWin32Classic --->
System.TypeInitializationException: An exception was thrown by the
type initializer for System.Drawing.KnownColors --->
System.TypeInitializationException: An exception was thrown by the
type initializer for System.Drawing.GDIPlus --->
System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/2.0/lib/libgdiplus.dylib
 at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
 at System.Drawing.GDIPlus..cctor () [0x00000]
 --- End of inner exception stack trace ---
 at System.Drawing.KnownColors..cctor () [0x00000]
 --- End of inner exception stack trace ---
 at System.Drawing.Color.get_Black () [0x00000]
 at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000]
 --- End of inner exception stack trace ---
 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]