[Mono-list] Windows.Forms apparently broken on OS X with mono-1.1.4 binary distribution

Ben S. Stahlhood bitoholic@gmail.com
Sat, 26 Feb 2005 18:49:31 -0500


Thomas,

You have to macpack the Mono exe's on Mac OS X.  Look up the macpack utility
(man macpack)

Here is an example of a macpack using your Main.exe file:

macpack -a:Main.exe -o:. -m:1 -n:Main

-m is the mode which 1 means Windows Forms I believe.  Geoff knows more
about this...

This will create a Main.app file, which should run fine :)

Hope this helps.

--
Ben S. Stahlhood II

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of Thomas E. Vaughan
Sent: Saturday, February 26, 2005 6:31 PM
To: SigmaX
Cc: mono-list@lists.ximian.com
Subject: [Mono-list] Windows.Forms apparently broken on OS X with mono-1.1.4
binary distribution

On Fri, Feb 25, 2005 at 10:52:09PM -0600, SigmaX wrote:
>
> I'm almost certain that Mono's Winforms run on Aqua.
> Could be wrong though.  Attatched is a small winform app I
> used to test out WinForms on my Linux box the other day,
> hope it works for ya :-).  SigmaX

I extracted your attachment, 'Main.exe'.  I'm running
mono-1.1.4 that I installed by using the OS X binary
package.  Here is the output of 'mono Main.exe':

----------BEGIN TRANSCRIPT----------
done detecting keyboard:  United States keyboard layout
#region #line XplatUI Constructor called

Unhandled Exception: System.TypeInitializationException: An exception was
thrown
 by the type initializer for Mono.Unix.Syscall --->
System.DllNotFoundException:
 libMonoPosixHelper.dylib
in <0x000cc> (wrapper managed-to-native) Mono.Unix.Syscall:_L_ctermid ()
in <0x00010> Mono.Unix.Syscall:.cctor ()
--- End of inner exception stack trace ---

in (unmanaged) Mono.Unix.Syscall:poll (Mono.Unix.Pollfd[],uint,int)
in <0x00174> System.Windows.Forms.XplatUIX11:UpdateMessageQueue ()
in <0x00170> System.Windows.Forms.XplatUIX11:UpdateMessageQueue ()
in <0x000b0> System.Windows.Forms.XplatUIX11:GetMessage
(System.Windows.Forms.MS
G&,intptr,int,int)
in <0x00058> System.Windows.Forms.XplatUI:GetMessage
(System.Windows.Forms.MSG&,
intptr,int,int)
in <0x00878> System.Windows.Forms.Application:ModalRun
(System.Windows.Forms.For
m)
in <0x000e8> System.Windows.Forms.Form:ShowDialog
(System.Windows.Forms.IWin32Wi
ndow)
in <0x00084> (wrapper remoting-invoke-with-check)
System.Windows.Forms.Form:Show
Dialog (System.Windows.Forms.IWin32Window)
in <0x00020> System.Windows.Forms.Form:ShowDialog ()
in <0x0006c> (wrapper remoting-invoke-with-check)
System.Windows.Forms.Form:Show
Dialog ()
in <0x00050> MessageBoxForm:RunDialog ()
in <0x0006c> (wrapper remoting-invoke-with-check) MessageBoxForm:RunDialog
()
in <0x00068> System.Windows.Forms.MessageBox:Show (string)
in <0x00014> HelloWindowsForms:Main ()
----------END TRANSCRIPT----------

I did 'find /Library/Frameworks -name libMonoPosixHelper.dylib' and found
/Library/Frameworks/Mono.framework/Versions/1.1.4/lib/libMonoPosixHelper.dyl
ib

Regardless of this problem, it is clear that
System.Windows.Forms is using X11.  What's up?

-- 
Thomas E. Vaughan <tevaughan@comcast.net>
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list