[Mono-osx] Getting started with System.Windows.Forms
John David Duncan
jdd at mysql.com
Fri Jun 16 22:10:53 EDT 2006
Hi,
I'm trying to work with Windows Forms code.
I followed the Hello, World example from http://oepapel.blogspot.com/
but I haven't had any luck, either with Mono 1.1.13 or 1.1.15.
Can anyone point me in the right direction?
Thanks,
JD
$ . /Library/Frameworks/Mono.framework/Home/env.sh
$ open Hello.app/
===== Friday, June 16, 2006 6:49:17 PM US/Pacific =====
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.Windows.Forms.Form --->
System.Reflection.TargetInvocationException: Exception has been
thrown by the target of an invocation. --->
System.TypeInitializationException: An exception was thrown by the
type initializer for System.Drawing.GDIPlus --->
System.ExecutionEngineException: SIGILL
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartu
pOutput&)
in <0x0018c> System.Drawing.GDIPlus:.cctor ()--- End of inner
exception stack trace ---
in <0x00000> <unknown method>
in <0x00248> System.Drawing.Image:InitFromStream (System.IO.Stream
stream)
in <0x00244> System.Drawing.Image:InitFromStream (System.IO.Stream
stream)
in <0x00154> System.Drawing.Bitmap:.ctor
(System.Runtime.Serialization.SerializationInfo info,
StreamingContext context)
in <0x00000> <unknown method>
in (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
in <0x000c4> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo
culture)--- End of inner exception stack trace ---
in <0x00154> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
in <0x00048> System.Reflection.MethodBase:Invoke (System.Object obj,
System.Object[] parameters)
in <0x002b8> System.Runtime.Serialization.ObjectRecord:LoadData
(System.Runtime.Serialization.ObjectManager manager,
ISurrogateSelector selector, StreamingContext context)
in <0x0019c> System.Runtime.Serialization.ObjectManager:DoFixups ()
in <0x00070>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObje
ct (System.IO.BinaryReader reader)
in <0x000ec>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectGr
aph (System.IO.BinaryReader reader, Boolean readHeaders,
System.Object result, System.Runtime.Remoting.Messaging.Header[]
headers)
in <0x001b0>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:NoCheckDe
serialize (System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler)
in <0x00020>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deseriali
ze (System.IO.Stream serializationStream)
in <0x00064> System.Resources.ResourceReader:ReadNonPredefinedValue
(System.Type exp_type)
in <0x00504> System.Resources.ResourceReader:ReadValueVer1
(System.Type type)
in <0x0026c> System.Resources.ResourceReader:ResourceValue (Int32 index)
in <0x00048> System.Resources.ResourceReader
+ResourceEnumerator:get_Value ()
in <0x000dc> System.Resources.ResourceSet:ReadResources ()
in <0x00088> System.Resources.ResourceSet:GetObject (System.String
name, Boolean ignoreCase)
in <0x000d0> System.Resources.ResourceManager:GetObject (SysteJun 16
18:50:06 Pierre crashdump[12923]: Hello crashed
m.String name, System.Globalization.CultureInfo culture)
in <0x00034> System.Resources.ResourceManager:GetObject
(System.String name)
in <0x00038> System.Windows.Forms.Locale:GetResource (System.String
name)
in <0x0001c> System.Windows.Forms.Form:.cctor ()--- End of inner
exception stack trace ---
in <0x00000> <unknown method>
in <0x00058> System.Windows.Forms.MessageBox+MessageBoxForm:.ctor
(IWin32Window owner, System.String text, System.String caption,
MessageBoxButtons buttons, MessageBoxIcon icon)
in <0x00054> System.Windows.Forms.MessageBox+MessageBoxForm:.ctor
(IWin32Window owner, System.String text, System.String caption,
MessageBoxButtons buttons, MessageBoxIcon icon)
in (wrapper remoting-invoke-with-check) MessageBoxForm:.ctor
(System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.Me
ssageBoxButtons,System.Windows.Forms.MessageBoxIcon)
in <0x00054> System.Windows.Forms.MessageBox:Show (System.String text)
in <0x00014> test:Main ()
Jun 16 18:50:07 Pierre crashdump[12923]: crash report written to: /
Users/jdd/Library/Logs/CrashReporter/Hello.crash.log
More information about the Mono-osx
mailing list