mail-archives/mono-osx/2011-February/004034.html

118 строки
4.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] WinForms Hello World did not start
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20WinForms%20Hello%20World%20did%20not%20start&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="004056.html">
<LINK REL="Next" HREF="004035.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] WinForms Hello World did not start</H1>
<B>xtonic</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20WinForms%20Hello%20World%20did%20not%20start&In-Reply-To="
TITLE="[Mono-osx] WinForms Hello World did not start">xtonic at gmail.com
</A><BR>
<I>Fri Feb 18 09:02:34 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="004056.html">[Mono-osx] OSX Gtk.Dialog window don't stay on top
</A></li>
<LI>Next message: <A HREF="004035.html">[Mono-osx] WinForms Hello World did not start
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4034">[ date ]</a>
<a href="thread.html#4034">[ thread ]</a>
<a href="subject.html#4034">[ subject ]</a>
<a href="author.html#4034">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>
My environment:
Mac OSX 10.6.4
Mono 2.8.2
XQuartz 2.6.0
I followed the link, <A HREF="http://mono-project.com/Mono_Basics,">http://mono-project.com/Mono_Basics,</A> 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 ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Windows.Forms.ThemeEngine ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Windows.Forms.ThemeWin32Classic ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.KnownColors ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.GDIPlus ---&gt; System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/2.8.2/lib/libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&amp;,System.Drawing.GdiplusStartupInput&amp;,System.Drawing.GdiplusStartupOutput&amp;)
at System.Drawing.GDIPlus..cctor () [0x00000] in &lt;filename unknown&gt;:0
--- End of inner exception stack trace ---
at System.Drawing.KnownColors..cctor () [0x00000] in &lt;filename unknown&gt;: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)
&#8230;..
--
View this message in context: <A HREF="http://mono.1490590.n4.nabble.com/WinForms-Hello-World-did-not-start-tp3312718p3312718.html">http://mono.1490590.n4.nabble.com/WinForms-Hello-World-did-not-start-tp3312718p3312718.html</A>
Sent from the Mono - OSX mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="004056.html">[Mono-osx] OSX Gtk.Dialog window don't stay on top
</A></li>
<LI>Next message: <A HREF="004035.html">[Mono-osx] WinForms Hello World did not start
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4034">[ date ]</a>
<a href="thread.html#4034">[ thread ]</a>
<a href="subject.html#4034">[ subject ]</a>
<a href="author.html#4034">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>