[Mono-devel-list] Re: [Mono-winforms-list] GDI Problem

Peter Dennis Bartok peter at novonyx.com
Mon Apr 4 06:51:49 EDT 2005


SWF applications on the Mac need to be started with the 'macpack' 
application. Please read the documentation.
Also, you do currently need the X11 server from Apple installed, it is used 
for font support.

Peter

-----Original Message-----
From: "Sindhu Gururaj" <sindhu.gururaj at celstream.com>
To: <mono-devel-list at lists.ximian.com>
Cc: <jordi at ximian.com>
Date: Monday, 04 April, 2005 01:16
Subject: [Mono-devel-list] Re: [Mono-winforms-list] GDI Problem


>
>
>I am interested in using Mono with System.Windows.Forms support on Mac OS X
>- Panther 10.3.
>Installed the MonoFramework-1.1.5.dmg available at
>http://www.mono-project.com/Downloads
><http://www.mono-project.com/Downloads> .
>This is posted on March 31st 2005.
>
>Have a simple hello.cs file as follows:
>
>using System;
>using System.Windows.Forms;
>
>class MainApp
>{
> public static void Main()
> {
> Console.WriteLine("First .NET Pgm on Panther 10.3\n");
> MessageBox.Show("Hello");
> }
>}
>
>This is compiled and invoked as
>mcs -r:System.Windows.Forms hello.cs
>mono hello.exe
>
>Only the Console.WriteLine executes then throws exception as shown below.
>Kindly help.
>
>/***************************************************************************
>*******************************/
>mono hello.exe
>First .NET Pgm on Panther 10.3
>
>Unhandled Exception: System.TypeInitializationException: An exception was
>thrown by the type initializer for MessageBoxForm --->
>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.DllNotFoundException:
>/Library/Frameworks/Mono.framework/Versions/1.1.5/lib/libgdiplus.dylib
>in <0x000d8> (wrapper managed-to-native)
>System.Drawing.GDIPlus:GdiplusStartup
>(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOut
>put&)
>in <0x0011c> System.Drawing.GDIPlus:.cctor ()
>--- End of inner exception stack trace ---
>
>in (unmanaged) System.Drawing.GDIPlus:GdipLoadImageFromDelegate_linux
>(System.Drawing.GDIPlus/StreamGetHeaderDelegate,System.Drawing.GDIPlus/Strea
>mGetBytesDelegate,System.Drawing.GDIPlus/StreamPutBytesDelegate,System.Drawi
>ng.GDIPlus/StreamSeekDelegate,System.Drawing.GDIPlus/StreamCloseDelegate,Sys
>tem.Drawing.GDIPlus/StreamSizeDelegate,intptr&)
>in <0x0011c> System.Drawing.Image:InitFromStream (System.IO.Stream)
>in <0x00118> System.Drawing.Image:InitFromStream (System.IO.Stream)
>in <0x00084> (wrapper remoting-invoke-with-check)
>System.Drawing.Image:InitFromStream (System.IO.Stream)
>in <0x00164> System.Drawing.Bitmap:.ctor
>(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization
>..StreamingContext)
>in (unmanaged) (wrapper managed-to-native)
>System.Reflection.MonoCMethod:InternalInvoke (object,object[])
>in <0x0008c> (wrapper managed-to-native)
>System.Reflection.MonoCMethod:InternalInvoke (object,object[])
>in <0x000c8> System.Reflection.MonoCMethod:Invoke
>(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sys
>tem.Globalization.CultureInfo)
>--- End of inner exception stack trace ---
>
>in <0x00178> System.Reflection.MonoCMethod:Invoke
>(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sys
>tem.Globalization.CultureInfo)
>in <0x00048> System.Reflection.MethodBase:Invoke (object,object[])
>in <0x00308> System.Runtime.Serialization.ObjectRecord:LoadData
>(System.Runtime.Serialization.ObjectManager,System.Runtime.Serialization.ISu
>rrogateSelector,System.Runtime.Serialization.StreamingContext)
>in <0x00190> System.Runtime.Serialization.ObjectManager:DoFixups ()
>in <0x00070>
>System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObject
>(System.IO.BinaryReader)
>in <0x000fc>
>System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectGraph
>(System.IO.BinaryReader,bool,object&,System.Runtime.Remoting.Messaging.Heade
>r[]&)
>in <0x001d4>
>System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
>(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
>in <0x0002c>
>System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
>(System.IO.Stream)
>in <0x007d8> System.Resources.ResourceReader:ResourceValue (int)
>in <0x00044> ResourceEnumerator:get_Value ()
>in <0x000f8> System.Resources.ResourceSet:ReadResources ()
>in <0x00074> System.Resources.ResourceSet:GetObject (string,bool)
>in <0x000d4> System.Resources.ResourceManager:GetObject
>(string,System.Globalization.CultureInfo)
>in <0x00034> System.Resources.ResourceManager:GetObject (string)
>in <0x00038> System.Windows.Forms.Locale:GetResource (string)
>in <0x00028> MessageBoxForm:.cctor ()
>--- End of inner exception stack trace ---
>
>in (unmanaged) (wrapper remoting-invoke-with-check) MessageBoxForm:.ctor
>(System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.Messag
>eBoxButtons,System.Windows.Forms.MessageBoxIcon)
>in <0x00058> System.Windows.Forms.MessageBox:Show (string)
>in <0x00054> System.Windows.Forms.MessageBox:Show (string)
>in <0x00020> MainApp:Main ()
>
>/***************************************************************************
>*******************************/
>Warm Regards,
>Sindhu Gururaj,
>sindhu.gururaj at celstream.com,
>Ext - 2209.
>
>
>
>This message is free from Virus - IMSS 




More information about the Mono-devel-list mailing list