[Mono-osx] Re: Mono 1.1.10 + MacOS

Roberto Antonio Berrospe Machin robert at berlinprod.com
Wed Nov 23 15:20:38 EST 2005


I've tested WinForms on X11 and it works. But not works if you try to use 
applications generated by macpack or seting up the needed variables on 
/etc/profile.

Don't know why stoped working...

This is what i get:

---------------------------------------------------------------

Mono System.Windows.Forms Assembly [Revision: 51965; built: 2005/10/20 
3:34:45]

Unhandled Exception: System.TypeInitializationException: An exception was 
thrown by the type initializer for System.Windows.Forms.XplatUI ---> 
System.DllNotFoundException: 
/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon
in (wrapper managed-to-native) System.Windows.Forms.XplatUIOSX:SetRect 
(intptr&,int16,int16,int16,int16)
in <0x002b4> System.Windows.Forms.XplatUIOSX:Initialize ()
in <0x00074> System.Windows.Forms.XplatUIOSX:.ctor ()
in <0x00060> System.Windows.Forms.XplatUIOSX:GetInstance ()
in <0x0007c> System.Windows.Forms.XplatUI:.cctor ()--- End of inner 
exception stack trace ---

in <0x00000> <unknown method>
in <0x00084> System.Windows.Forms.Form:get_CreateParams ()
in <0x00080> System.Windows.Forms.Form:get_CreateParams ()
in <0x00044> System.Windows.Forms.MessageBox+MessageBoxForm:get_CreateParams 
()
in <0x00370> System.Windows.Forms.Control:.ctor ()
in <0x00028> System.Windows.Forms.ScrollableControl:.ctor ()
in <0x0001c> System.Windows.Forms.ContainerControl:.ctor ()
in <0x0002c> System.Windows.Forms.Form:.ctor ()
in <0x0003c> 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.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)
in <0x00054> System.Windows.Forms.MessageBox:Show (System.String text)
in <0x00014> testwforms.message:Main ()

---------------------------------------------------------------


This is my /etc/profile
---------------------------------------------------------------

PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin"
export PATH

DYLD_LIBRARY_PATH="/Library/Frameworks/Mono.framework/Versions/Current/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib"
export DYLD_LIBRARY_PATH

LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
export LD_LIBRARY_PATH

# set mono to use native osx gui api
MONO_MWF_USE_QUARTZ_BACKEND=1
export MONO_MWF_USE_QUARTZ_BACKEND

GDIPLUS_NOX=1
export GDIPLUS_NOX
---------------------------------------------------------------


Maybe this can be usefull.

Thanks.

Roberto.

----- Original Message ----- 
From: "Miguel de Icaza" <miguel at ximian.com>
To: "Edward J. Sabol" <sabol at alderaan.gsfc.nasa.gov>
Cc: <mono-osx at lists.ximian.com>
Sent: Wednesday, November 23, 2005 4:04 PM
Subject: Re: [Mono-osx] Re: Mono 1.1.10 + MacOS


> Hello,
>
>> > > I downloaded the latest release and then attempted to test my 
>> > > program,
>> > > which uses Windows Forms, but it does not work! It starts to launch 
>> > > and
>> > > then it simply exits. This same code would compile and run under 
>> > > 1.1.9,
>> > > but some of the Windows controls did not work as well as they should.
>> >
>> > My experience is similar to yours. A Windows.Forms application that 
>> > mostly
>> > worked in a previous version of Mono now doesn't work at all with Mono
>> > 1.1.10.
>>
>> The problem is that Cairo 1.0 no longer builds on OSX because it
>> requires a newer version of FreeType to be installed.
>>
>> I might end up including our own version of FreeType to make it work.
>
> Actually, I just checked this: I did ship FreeType and GDI+ on this
> release of Mono.
>
> So the issue is not this.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.13.5/178 - Release Date: 22/11/2005
>
> 



More information about the Mono-osx mailing list