[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
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.


-----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 
>- Panther 10.3.
>Installed the MonoFramework-1.1.5.dmg available at 
><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 --->
>in <0x000d8> (wrapper managed-to-native) 
>in <0x0011c> System.Drawing.GDIPlus:.cctor ()
>--- End of inner exception stack trace ---
>in (unmanaged) System.Drawing.GDIPlus:GdipLoadImageFromDelegate_linux
>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> 
>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
>--- End of inner exception stack trace ---
>in <0x00178> System.Reflection.MonoCMethod:Invoke
>in <0x00048> System.Reflection.MethodBase:Invoke (object,object[]) in 
><0x00308> System.Runtime.Serialization.ObjectRecord:LoadData
>in <0x00190> System.Runtime.Serialization.ObjectManager:DoFixups () in 
>in <0x000fc>
>in <0x001d4>
>in <0x0002c>
>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> 
>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) 
>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