[Mono-list] 1.2.6 Native SWF on osx

Yoav HaCohen yoavhacohen at gmail.com
Thu Dec 13 11:48:17 EST 2007


Thanks, The packages from your blog solved the problem of the  
AsyncMethods.

However, I encounter some new problem:

1. (High importance) I have a control that need to redraw itself  
every 50 ms, and now it flickers each time I call invalidate() (and  
it's a big problem when invalidate() called every 50ms). Maybe it's a  
result of the messages to the terminal?

2. The window title does not respond - no window moving, close  
button, etc.

3.  (Just a GUI thing) I have a toolbar that should be a vertical  
toolbar (because it is located on the left hand side of the window)  
but it appears as horizontal toolbar. In addition, it's not possible  
to change the toolbar location using drag and drop.


Thanks in advance,
Yoav

On  13 December, 2007, at 5:37 PM, Geoff Norton wrote:

> AsyncMethods (like many other things) are already implemented on  
> trunk.
>
> The native mac support is a moving target under heavy development  
> that gets outdated approximately weekly now.
>
> I try to keep the packages I referenced at my blog up to date, so  
> please either test from SVN or with those packages on top of 1.2.6.
>
> -g
>
> On 13-Dec-07, at 10:21 AM, Yoav HaCohen wrote:
>
>> 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 <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 homepage.
>>> _______________________________________________
>>> 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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20071213/33dd33b2/attachment-0001.html 


More information about the Mono-list mailing list