[Mono-winforms-list] running winforms examples

Olaf Leidinger leidola@gmail.com
Tue, 05 Apr 2005 12:57:23 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

I tried both mono-1.1.6 and the latest svn-version, both produce the
same result when running any of the examples on svn:



 mono button/swf-buttons.exe
Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15
5:56:12]

Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.Windows.Forms.XplatUI --->
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.NotSupportedException:
Either image format is unknown or you don't have the required libraries
for this format.
in <0x0014a> System.Drawing.GDIPlus:CheckStatus (Status status)
in <0x000ca> System.Drawing.Image:InitFromStream (System.IO.Stream stream)
in (wrapper remoting-invoke-with-check)
System.Drawing.Image:InitFromStream (System.IO.Stream)
in <0x00104> 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 <0x0006f> 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 <0x00104> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
in <0x00017> System.Reflection.MethodBase:Invoke (System.Object obj,
System.Object[] parameters)
in <0x0021d> System.Runtime.Serialization.ObjectRecord:LoadData
(System.Runtime.Serialization.ObjectManager manager, ISurrogateSelector
selector, StreamingContext context)
in <0x00100> System.Runtime.Serialization.ObjectManager:DoFixups ()
in <0x0003f>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObject
(System.IO.BinaryReader reader)
in <0x000b0>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object
result, System.Runtime.Remoting.Messaging.Header[] headers)
in <0x00120>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler)
in <0x00012>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
(System.IO.Stream serializationStream)
in <0x0052b> System.Resources.ResourceReader:ResourceValue (Int32 index)
in <0x00023> System.Resources.ResourceReader+ResourceEnumerator:get_Value ()
in <0x00090> System.Resources.ResourceSet:ReadResources ()
in <0x00039> System.Resources.ResourceSet:GetObject (System.String name,
Boolean ignoreCase)
in <0x00081> System.Resources.ResourceManager:GetObject (System.String
name, System.Globalization.CultureInfo culture)
in <0x00010> System.Resources.ResourceManager:GetObject (System.String name)
in <0x0001d> System.Windows.Forms.Locale:GetText (System.String msg)
in <0x004d7> System.Windows.Forms.X11Keyboard:DetectLayout ()
in <0x00063> System.Windows.Forms.X11Keyboard:.ctor (IntPtr display)
in <0x002e5> System.Windows.Forms.XplatUIX11:SetDisplay (IntPtr
display_handle)
in <0x0008c> System.Windows.Forms.XplatUIX11:.ctor ()
in <0x0003f> System.Windows.Forms.XplatUIX11:GetInstance ()
in <0x00059> System.Windows.Forms.XplatUI:.cctor ()--- End of inner
exception stack trace ---

in <0x00000> <unknown method>
in <0x00049> System.Windows.Forms.Form:get_CreateParams ()
in <0x001fc> System.Windows.Forms.Control:.ctor ()
in <0x00011> System.Windows.Forms.ScrollableControl:.ctor ()
in <0x0000c> System.Windows.Forms.ContainerControl:.ctor ()
in <0x00010> System.Windows.Forms.Form:.ctor ()
in <0x0000a> MyFormProject.MainForm:.ctor ()
in (wrapper remoting-invoke-with-check) MyFormProject.MainForm:.ctor ()
in <0x0001a> MyFormProject.MainForm:Main (System.String[] args)


What might be wrong here?

Ciao,

Olaf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCUm8T4Yz1Ukx83/kRAik2AKCJIY8CHbWZkH6r02xPksUU8lOLrACgo1t3
31MtUcRtd6kz/cyKrazoPr0=
=UPEv
-----END PGP SIGNATURE-----