[Mono-list] 1.2.6 Native SWF on osx

Jedd Haberstro bronxbomber92 at yahoo.com
Thu Dec 13 08:52:15 EST 2007


I'm trying to run Winforms also, but everytime I try to run the
.exe file, I get an Unhandled Exception. I'm using the WinForms hello
world from here http://mono-project.com/Mono_Basics#Winforms_Hello_World

Here's the step I took, and the resulting error

jedd-haberstros-computer:~ jeddhaberstro$ export MONO_MWF_USE_QUARTZ_BACKEND=1
jedd-haberstros-computer:~ jeddhaberstro$ cd desktop
jedd-haberstros-computer:~/desktop jeddhaberstro$ gmcs hello.cs -pkg:dotnet
jedd-haberstros-computer:~/desktop jeddhaberstro$ mono hello.exe

Unhandled Exception: System.ExecutionEngineException:
 SIGILL
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) System.Diagnostics.StackTrace:get_trace (System.Exception,int,bool)
 
at System.Diagnostics.StackTrace..ctor (System.Exception e, Int32
skipFrames, Boolean needFileInfo, Boolean returnNativeFrames) [0x00000]

  at System.Exception.get_StackTrace () [0x00000] 
  at System.Exception.ToString () [0x00000] 
  at System.Exception.ToString () [0x00000] 
  at System.Exception.ToString () [0x00000] 
  at System.Exception.ToString () [0x00000] 
  at <0x00000> <unknown method>
  at HelloWorld..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) HelloWorld:.ctor ()
  at HelloWorld.Main () [0x00000] 
jedd-haberstros-computer:~/desktop jeddhaberstro$ 

What I have I done wrong? I tried running macpack on it, then launching it, and it worked.
I also just tried running with Geoff Norton's Carbon implementation, and I couldn't get that to work at all. Can someone help me out?

Thanks,
Jedd H.

P.S. Geoff, I accidently sent this message directly to you, please disregard that email.

----- Original Message ----
From: Geoff Norton <gnorton at novell.com>
To: oplusplus <oplusplus at cox.net>
Cc: Mono-list at lists.ximian.com
Sent: Wednesday, December 12, 2007 11:27:34 PM
Subject: Re: [Mono-list] 1.2.6 Native SWF on osx


If you want to run from the command line on 1.2.6:

export MONO_MWF_USE_QUARTZ_BACKEND=1

If you want to run frrom the command line with 1.2.6 + my updated  
driver from my blog you must ALSO do:

export MONO_MWF_USE_CARBON_BACKEND=1

-g

----- Original Message ----
From: Geoff Norton <gnorton at novell.com>
To: oplusplus <oplusplus at cox.net>
Cc: Mono-list at lists.ximian.com
Sent: Wednesday, December 12, 2007 11:27:34 PM
Subject: Re: [Mono-list] 1.2.6 Native SWF on osx


If you want to run from the command line on 1.2.6:

export MONO_MWF_USE_QUARTZ_BACKEND=1

If you want to run frrom the command line with 1.2.6 + my updated  
driver from my blog you must ALSO do:

export MONO_MWF_USE_CARBON_BACKEND=1

-g

On 12-Dec-07, at 10:22 PM, oplusplus wrote:

> I have installed 1.2.6 and some of the samples from the Winforms
> directory and they do not run, but instead I get an exception:
>
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for System.Windows.Forms.XplatUI
> ---> System.ArgumentNullException: Could not open display (X-Server
> required. Check you DISPLAY environment variable)
> Parameter name: Display
>   at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr
> display_handle) [0x00000]
>   at System.Windows.Forms.XplatUIX11..ctor () [0x00000]
>   at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000]
>   at System.Windows.Forms.XplatUI..cctor () [0x00000] --- End of
> inner exception stack trace ---
>
>   at <0x00000> <unknown method>
>   at System.Windows.Forms.Form.get_CreateParams () [0x00000]
>   at System.Windows.Forms.Form.get_CreateParams () [0x00000]
>   at System.Windows.Forms.Control.InternalSizeFromClientSize (Size
> clientSize) [0x00000]
>   at System.Windows.Forms.Control.ClientSizeFromSize (Size size)
> [0x00000]
>   at System.Windows.Forms.Control..ctor () [0x00000]
>   at System.Windows.Forms.ScrollableControl..ctor () [0x00000]
>   at System.Windows.Forms.ContainerControl..ctor () [0x00000]
>   at System.Windows.Forms.Form..ctor () [0x00000]
>   at MonoSamples.DockForm..ctor () [0x00000]
>   at (wrapper remoting-invoke-with-check) MonoSamples.DockForm:.ctor
  
> ()
>   at MonoSamples.DockForm.Main (System.String[] args) [0x00000]
>
>
> Is there something that I have to do, other than installing 1.2.6 to
> get the osx native winforms to work?  I have x11 installed, but not
> running.
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list






      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20071213/dabaddbe/attachment.html 


More information about the Mono-list mailing list