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

Sindhu Gururaj sindhu.gururaj at celstream.com
Mon Apr 4 07:21:55 EDT 2005


 
Thanks for the reply.

I don't quite understand.. I got a reply from Jordi saying that "libgdiplus"
must be installed. 
I thought the monoframework-1.1.5.dmg installer for Mac OS X would take care
of it.

I am new to Linux as well as Mac. I don't want to use Cocoa# for my
development on Mac OS X and want to use SWF from the .NET itself. Should I
invoke my application through the macpack even if I don't want to use
Cocoa#?
We already have an Client Server application in Windows .NET, now we want to
port the existing client code on Mac hence we don't want to use Cocoa# and
use SWF of .NET.
Kindly point me in the right direction. Thanks.
Also u have mentioned. Please read the documentation, Which one are you
referring to ?

Can you please elaborate. Thanks for your time.

Warm Regards,
Sindhu Gururaj,
sindhu.gururaj at celstream.com,
Ext - 2209.

-----Original Message-----
From: Peter Dennis Bartok [mailto:peter at novonyx.com] 
Sent: Monday, April 04, 2005 4:22 PM
To: Sindhu Gururaj; mono-devel-list at lists.ximian.com
Cc: jordi at ximian.com
Subject: Re: [Mono-devel-list] Re: [Mono-winforms-list] GDI Problem

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.GdiplusStart
>upOut
>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/StreamCloseDelegat
>e,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.Serializ
>ation
>..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.Serializatio
>n.ISu
>rrogateSelector,System.Runtime.Serialization.StreamingContext)
>in <0x00190> System.Runtime.Serialization.ObjectManager:DoFixups () in 
><0x00070> 
>System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObj
>ect
>(System.IO.BinaryReader)
>in <0x000fc>
>System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectG
>raph 
>(System.IO.BinaryReader,bool,object&,System.Runtime.Remoting.Messaging.
>Heade
>r[]&)
>in <0x001d4>
>System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserial
>ize
>(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
>in <0x0002c>
>System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserial
>ize
>(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.M
>essag
>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


This message is free from Virus - IMSS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050404/1355559f/attachment.html 


More information about the Mono-devel-list mailing list