I'm also trying to run Winform also, but everytime I try to open an
OpenFileDialog conrol it throws the following exception:
Unhandled Exception: System.NotImplementedException: The requested
feature is not implemented.
at System.Windows.Forms.XplatUIOSX.SendAsyncMethod
(System.Windows.Forms.AsyncMethodData method) [0x00000]
at System.Windows.Forms.XplatUI.SendAsyncMethod
(System.Windows.Forms.AsyncMethodData data) [0x00000]
at System.Windows.Forms.Control.BeginInvokeInternal
(System.Delegate method, System.Object[] args,
System.Windows.Forms.Control control) [0x00000]
at System.Windows.Forms.Control.BeginInvokeInternal
(System.Delegate method, System.Object[] args) [0x00000]
at System.Windows.Forms.Control.BeginInvoke (System.Delegate
method, System.Object[] args) [0x00000]
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:BeginInvoke (System.Delegate,object[])
at System.Windows.Forms.MWFVFS+WorkerThread.GetFolderContentThread
() [0x00000]
at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
OpenFileDialog control is a very common control, so I believe it
worth to implement the necessary method for it.
I work with Mac OS v10.4.11, Mono 1.2.6 and Microsoft C# compiler.
Any solution?
Thanks,
Yoav
On 13 December, 2007, at 3:52 PM, Jedd Haberstro wrote:
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 <[EMAIL PROTECTED]>
To: oplusplus <[EMAIL PROTECTED]>
Cc: [email protected]
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 <[EMAIL PROTECTED]>
To: oplusplus <[EMAIL PROTECTED]>
Cc: [email protected]
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 - [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
Never miss a thing. Make Yahoo your homepage.
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list