[Mono-osx] WinForms Hello World did not start
xtonic
xtonic at gmail.com
Fri Feb 18 09:02:34 EST 2011
My environment:
Mac OSX 10.6.4
Mono 2.8.2
XQuartz 2.6.0
I followed the link, http://mono-project.com/Mono_Basics, to create WinForms
Hello World testing program. However, I got the following error:
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.8.2/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] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Drawing.KnownColors..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
I checked the libgdiplus.dylib and it looked OK
$ otool -L
/Library/Frameworks/Mono.framework/Versions/2.8.2/lib/libgdiplus.dylib
/Library/Frameworks/Mono.framework/Versions/2.8.2/lib/libgdiplus.dylib:
/Library/Frameworks/Mono.framework/Versions/2.8.2/lib/libgdiplus.0.dylib
(compatibility version 1.0.0, current version 1.0.0)
/Library/Frameworks/Mono.framework/Versions/2.8.2/lib/libglib-2.0.0.dylib
(compatibility version 2401.0.0, current version 2401.1.0)
…..
--
View this message in context: http://mono.1490590.n4.nabble.com/WinForms-Hello-World-did-not-start-tp3312718p3312718.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx
mailing list