Baker, GJ (Gareth | 1 Oct 09:42 2005
Picon
Picon

System.Windows.Forms from svn on Mac OSX

I compiled SWF from the svn this morning. It seemed to go in OK. I then tried to compile and run a programme in
the Mac X11 environment and got the following error:

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type
initializer for System.Windows.Forms.XplatUI ---> System.TypeInitializationException: An
exception was thrown by the type initializer for System.Windows.Forms.X11DesktopColors --->
System.DllNotFoundException: libgtk-x11-2.0.so
in (wrapper managed-to-native) System.Windows.Forms.X11DesktopColors:gtk_init_check (int&,string)
in <0x00098> System.Windows.Forms.X11DesktopColors:.cctor ()--- End of inner exception stack trace ---

Should SWF be assuming I have gtk installed (which I don't)?

Regards
Gareth Baker

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

Peter Dennis Bartok | 1 Oct 16:23 2005

Re: System.Windows.Forms from svn on Mac OSX

Gareth,

It shouldn't assume, no. I've fixed the behaviour, it won't throw an 
exception anymore, as of svn r51076.

Cheers,
  Peter

-----Original Message-----
From: "Baker, GJ (Gareth)" <g.j.baker <at> dl.ac.uk>
To: <mono-winforms-list <at> ximian.com>
Date: Saturday, 01 October, 2005 01:50
Subject: [Mono-winforms-list] System.Windows.Forms from svn on Mac OSX

>I compiled SWF from the svn this morning. It seemed to go in OK. I then 
>tried to compile and run a programme in the Mac X11 environment and got the 
>following error:
>
>Unhandled Exception: System.TypeInitializationException: An exception was 
>thrown by the type initializer for System.Windows.Forms.XplatUI ---> 
>System.TypeInitializationException: An exception was thrown by the type 
>initializer for System.Windows.Forms.X11DesktopColors ---> 
>System.DllNotFoundException: libgtk-x11-2.0.so
>in (wrapper managed-to-native) 
>System.Windows.Forms.X11DesktopColors:gtk_init_check (int&,string)
>in <0x00098> System.Windows.Forms.X11DesktopColors:.cctor ()--- End of 
>inner exception stack trace ---
>
>Should SWF be assuming I have gtk installed (which I don't)?
>
(Continue reading)

Baker, GJ (Gareth | 1 Oct 20:35 2005
Picon
Picon

RE: System.Windows.Forms from svn on Mac OSX

Peter,

Thanks for the prompt fix. At least it runs now (even if its an interesting colo(u)r scheme :-)

Gareth

-----Original Message-----
From: Peter Dennis Bartok [mailto:peter <at> novonyx.com]
Sent: Sat 10/1/2005 3:23 PM
To: Baker, GJ (Gareth); mono-winforms-list <at> ximian.com
Subject: Re: [Mono-winforms-list] System.Windows.Forms from svn on Mac OSX

Gareth,

It shouldn't assume, no. I've fixed the behaviour, it won't throw an 
exception anymore, as of svn r51076.

Cheers,
  Peter

-----Original Message-----
From: "Baker, GJ (Gareth)" <g.j.baker <at> dl.ac.uk>
To: <mono-winforms-list <at> ximian.com>
Date: Saturday, 01 October, 2005 01:50
Subject: [Mono-winforms-list] System.Windows.Forms from svn on Mac OSX

>I compiled SWF from the svn this morning. It seemed to go in OK. I then 
>tried to compile and run a programme in the Mac X11 environment and got the 
>following error:
>
(Continue reading)

1.1.9.1 Native Winforms Crash on OSX

Hello good people.
I was looking on internet about other posts about winforms crash on OSX, but not found anything good.. Maybe i'm the only with this problem?
I have installed Mono 1.1.9.1 on my iBook G4 with Tiger installed, and well my first test with native winforms, a simple hello world with C# and MessageBox works, but, when i close the app, i get an error because mono crashed... then if i try to run the app again, im unable to run it because i start to get the same crash error... the app dont run anymore. Then if i restart my machine, im able to launch one time any of these tests, but then, the same thing...
 
Im only have tiger with some common apps like iLife, Photoshop, Office, and nothing more...
 
What that can be?
 
I'd love to develop WinForms on my mac!!!
 
 
Thanks!
 
Roberto.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Jonathan S. Chambers | 3 Oct 17:58 2005

RE: 1.1.9.1 Native Winforms Crash on OSX

Hello Roberto,

 

Please post the error and the sample code. Also, are you using macpack?

 

- Jonathan

 

From: mono-winforms-list-bounces <at> lists.ximian.com [mailto:mono-winforms-list-bounces <at> lists.ximian.com] On Behalf Of Roberto Antonio Berrospe Machin
Sent: Monday, October 03, 2005 11:54 AM
To: mono-winforms-list <at> lists.ximian.com
Subject: [Mono-winforms-list] 1.1.9.1 Native Winforms Crash on OSX

 

Hello good people.

I was looking on internet about other posts about winforms crash on OSX, but not found anything good.. Maybe i'm the only with this problem?

I have installed Mono 1.1.9.1 on my iBook G4 with Tiger installed, and well my first test with native winforms, a simple hello world with C# and MessageBox works, but, when i close the app, i get an error because mono crashed... then if i try to run the app again, im unable to run it because i start to get the same crash error... the app dont run anymore. Then if i restart my machine, im able to launch one time any of these tests, but then, the same thing...

 

Im only have tiger with some common apps like iLife, Photoshop, Office, and nothing more...

 

What that can be?

 

I'd love to develop WinForms on my mac!!!

 

 

Thanks!

 

Roberto.

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

Fw: 1.1.9.1 Native Winforms Crash on OSX

Hi Jonathan. Thanks for the answer.
"Im sending this again, because the previous was bloqued, because i've posted the whole error report that i got from tiger... "
 
-----------------------------------------------------------------------
Yes, the code for the simple app im doing is:
 
using System.Drawing;
using System.Windows.Forms;
 
namespace testwforms
{
    public clas mesagebox
    {
        static void Main()
        {
            MesageBox.Show("Helo World");
        }
    }
}
 
Im saving it as test.cs, and what im ussing to compile it is:
 
mcs /t:winexe /r:system.drawing.dll /r:system.windows.forms.dll test.cs
 
then, mackpacking it as...
 
macpack -a:test.exe -o:. -m:1 -n:test
 
The error report is the next....
 
 
Date/Time:      2005-10-03 14:06:36.852 -0300
OS Version:     10.4.2 (Build 8C46)
Report Version: 3
 
Command: mono
Path:    /usr/bin/mono
Parent:  sh [1129]
 
Version: ??? (???)
 
PID:    1137
Thread: 2
 
Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0xa0384200
 
Thread 0:
0   libSystem.B.dylib            0x90056418 semaphore_timedwait_signal_trap + 8
1   libSystem.B.dylib            0x90056284 pthread_cond_timedwait + 704
2   mono                         0x00157d50 timedwait_signal_poll_cond + 164 (handles.c:1251)
3   mono                         0x00158118 _wapi_handle_timedwait_signal_handle + 520 (handles.c:1338)
4   mono                         0x00144e08 WaitForSingleObjectEx + 572 (wait.c:181)
5   mono                         0x0012a7ac mono_domain_finalize + 272 (gc.c:214)
6   mono                         0x00032278 mini_cleanup + 44 (mini.c:10280)
7   mono                         0x00005500 mono_main + 4468 (driver.c:942)
8   mono                         0x00002e14 main + 40 (main.c:6)
9   mono                         0x000028dc _start + 392 (crt.c:267)
10  dyld                         0x8fe01048 _dyld_start + 60
 
Thread 1:
0   libSystem.B.dylib            0x90042ae8 mach_wait_until + 8
1   libSystem.B.dylib            0x900428a0 nanosleep + 384
2   mono                         0x00181e14 collection_thread + 60 (collection.c:43)
3   libSystem.B.dylib            0x9002c3b4 _pthread_body + 96
 
Thread 2 Crashed:
0   <<00000000>>  0xfffeff20 objc_msgSend_rtp + 32
1   <<00000000>>  0x04f106c0 0 + 82904768
2   <<00000000>>  0x04f10360 0 + 82903904
3   <<00000000>>  0x04f101a8 0 + 82903464
4   <<00000000>>  0x04f0ffb4 0 + 82902964
5   <<00000000>>  0x04f0ff14 0 + 82902804
6   <<00000000>>  0x04f0fe08 0 + 82902536
7   <<00000000>>  0x04f0fd70 0 + 82902384
8   <<00000000>>  0x04f0fd38 0 + 82902328
9   <<00000000>>  0x04f0fcdc 0 + 82902236
10  <<00000000>>  0x04f0fbe4 0 + 82901988
11  mono                         0x00030c50 mono_jit_runtime_invoke + 280 (mini.c:9649)
12  mono                         0x000a459c mono_runtime_invoke + 84 (object.c:1311)
13  mono                         0x0012a4b4 run_finalize + 328 (gc.c:105)
14  mono                         0x0012ba5c finalize_domain_objects + 180 (gc.c:647)
15  mono                         0x0012bb9c finalizer_thread + 244 (gc.c:685)
16  mono                         0x000aab84 start_wrapper + 300 (threads.c:297)
17  mono                         0x0016046c timed_thread_start_routine + 284 (timed-thread.c:134)
18  libSystem.B.dylib            0x9002c3b4 _pthread_body + 96
 
Thread 3:
0   libSystem.B.dylib            0x9000a738 mach_msg_trap + 8
1   libSystem.B.dylib            0x9000a67c mach_msg + 60
2   com.apple.CoreFoundation     0x9074b338 __CFRunLoopRun + 832
3   com.apple.CoreFoundation     0x9074ac3c CFRunLoopRunSpecific + 268
4   com.apple.CoreFoundation     0x9075a09c CFRunLoopRun + 52
5   tw.com.sonix.webcam.sn9c102  0x052e8a68 Bridge::installDeviceRemovedNotification(void*) + 452
6   libSystem.B.dylib            0x9002c3b4 _pthread_body + 96
 
Thread 2 crashed with PPC Thread State 64:
  srr0: 0x00000000fffeff20 srr1: 0x000000000200f030                        vrsave: 0x0000000000000000
    cr: 0x44000442          xer: 0x0000000020000001   lr: 0x0000000004f106c0  ctr: 0x00000000fffeff00
    r0: 0x0000000004f106c0   r1: 0x00000000f01037c0   r2: 0x00000000a0384200   r3: 0x0000000002b4f1c0
    r4: 0x0000000090a16918   r5: 0x0000000000000072   r6: 0x00000000a09a88b4   r7: 0x00000000907dd554
    r8: 0x0000000000003227   r9: 0x0000000090a1691f  r10: 0x0000000000000001  r11: 0x000000006f5f6918
   r12: 0x0000000000020bbb  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
   r16: 0x0000000000000000  r17: 0x0000000000000000  r18: 0x0000000000000000  r19: 0x0000000000000000
   r20: 0x0000000000000000  r21: 0x0000000000000000  r22: 0x0000000000000000  r23: 0x0000000002b527a0
   r24: 0x0000000000744ec0  r25: 0x0000000002b4f1c0  r26: 0x0000000000746e70  r27: 0x0000000000745600
   r28: 0x0000000002b4f1c0  r29: 0x00000000018054f0  r30: 0x00000000f0103bb0  r31: 0x00000000f0103af0
 
Model: PowerBook6,5, BootROM 4.8.5f0, 1 processors, PowerPC G4  (1.1), 1.07 GHz, 768 MB
Graphics: ATI Mobility Radeon 9200, ATY,RV280M9+, AGP, 32 MB
Memory Module: DIMM0/BUILT-IN, 256 MB, built-in, built-in
Memory Module: DIMM1/J31, 512 MB, DDR SDRAM, PC2700U-25330
AirPort: AirPort Extreme, 400.17 (3.90.34.0.p11)
Modem: Jump, , V.92, Version 1.0,
Network Service: Ethernet incorporada, Ethernet, en0
Parallel ATA Device: MATSHITACD-RW  CW-8123, 781.61 MB
Parallel ATA Device: Hitachi IC25N040ATMR04-0, 37.26 GB
USB Device: Generic USB Hub, ALCOR, Up to 12 Mb/sec, 500 mA
USB Device: USB Device, , Up to 12 Mb/sec, 500 mA
USB Device: Microsoft 3-Button Mouse with IntelliEye(TM), Microsoft, Up to 1.5 Mb/sec, 500 mA
USB Device: USB camera, , Up to 12 Mb/sec, 500 mA
 
 
Thats all... thanks for the help!!!!
 
 
 
Roberto.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Jonathan S. Chambers | 3 Oct 21:49 2005

RE: 1.1.9.1 Native Winforms Crash on OSX

You’re showing a MessageBox outside of an application loop. Try something like this. Not sure if that’s your problem or not.

 

public class messagebox : Form

      {

            public messagebox()

            {

                  this.Text = "Hello World";

            }

 

            static void Main()

            {

                  Application.Run(new messagebox());

            }

      }

 

- Jonathan

From: mono-winforms-list-bounces <at> lists.ximian.com [mailto:mono-winforms-list-bounces <at> lists.ximian.com] On Behalf Of Roberto Antonio Berrospe Machin
Sent: Monday, October 03, 2005 1:49 PM
To: mono-winforms-list <at> lists.ximian.com
Subject: Fw: [Mono-winforms-list] 1.1.9.1 Native Winforms Crash on OSX

 

Hi Jonathan. Thanks for the answer.

"Im sending this again, because the previous was bloqued, because i've posted the whole error report that i got from tiger... "

 

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

Yes, the code for the simple app im doing is:

 

using System.Drawing;

using System.Windows.Forms;

 

namespace testwforms

{

    public clas mesagebox

    {

        static void Main()

        {

            MesageBox.Show("Helo World");

        }

    }

}

 

Im saving it as test.cs, and what im ussing to compile it is:

 

mcs /t:winexe /r:system.drawing.dll /r:system.windows.forms.dll test.cs

 

then, mackpacking it as...

 

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

 

The error report is the next....

 

 

Date/Time:      2005-10-03 14:06:36.852 -0300
OS Version:     10.4.2 (Build 8C46)
Report Version: 3

 

Command: mono
Path:    /usr/bin/mono
Parent:  sh [1129]

 

Version: ??? (???)

 

PID:    1137
Thread: 2

 

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0xa0384200

 

Thread 0:
0   libSystem.B.dylib            0x90056418 semaphore_timedwait_signal_trap + 8
1   libSystem.B.dylib            0x90056284 pthread_cond_timedwait + 704
2   mono                         0x00157d50 timedwait_signal_poll_cond + 164 (handles.c:1251)
3   mono                         0x00158118 _wapi_handle_timedwait_signal_handle + 520 (handles.c:1338)
4   mono                         0x00144e08 WaitForSingleObjectEx + 572 (wait.c:181)
5   mono                         0x0012a7ac mono_domain_finalize + 272 (gc.c:214)
6   mono                         0x00032278 mini_cleanup + 44 (mini.c:10280)
7   mono                         0x00005500 mono_main + 4468 (driver.c:942)
8   mono                         0x00002e14 main + 40 (main.c:6)
9   mono                         0x000028dc _start + 392 (crt.c:267)
10  dyld                         0x8fe01048 _dyld_start + 60

 

Thread 1:
0   libSystem.B.dylib            0x90042ae8 mach_wait_until + 8
1   libSystem.B.dylib            0x900428a0 nanosleep + 384
2   mono                         0x00181e14 collection_thread + 60 (collection.c:43)
3   libSystem.B.dylib            0x9002c3b4 _pthread_body + 96

 

Thread 2 Crashed:
0   <<00000000>>  0xfffeff20 objc_msgSend_rtp + 32
1   <<00000000>>  0x04f106c0 0 + 82904768
2   <<00000000>>  0x04f10360 0 + 82903904
3   <<00000000>>  0x04f101a8 0 + 82903464
4   <<00000000>>  0x04f0ffb4 0 + 82902964
5   <<00000000>>  0x04f0ff14 0 + 82902804
6   <<00000000>>  0x04f0fe08 0 + 82902536
7   <<00000000>>  0x04f0fd70 0 + 82902384
8   <<00000000>>  0x04f0fd38 0 + 82902328
9   <<00000000>>  0x04f0fcdc 0 + 82902236
10  <<00000000>>  0x04f0fbe4 0 + 82901988
11  mono                         0x00030c50 mono_jit_runtime_invoke + 280 (mini.c:9649)
12  mono                         0x000a459c mono_runtime_invoke + 84 (object.c:1311)
13  mono                         0x0012a4b4 run_finalize + 328 (gc.c:105)
14  mono                         0x0012ba5c finalize_domain_objects + 180 (gc.c:647)
15  mono                         0x0012bb9c finalizer_thread + 244 (gc.c:685)
16  mono                         0x000aab84 start_wrapper + 300 (threads.c:297)
17  mono                         0x0016046c timed_thread_start_routine + 284 (timed-thread.c:134)
18  libSystem.B.dylib            0x9002c3b4 _pthread_body + 96

 

Thread 3:
0   libSystem.B.dylib            0x9000a738 mach_msg_trap + 8
1   libSystem.B.dylib            0x9000a67c mach_msg + 60
2   com.apple.CoreFoundation     0x9074b338 __CFRunLoopRun + 832
3   com.apple.CoreFoundation     0x9074ac3c CFRunLoopRunSpecific + 268
4   com.apple.CoreFoundation     0x9075a09c CFRunLoopRun + 52
5   tw.com.sonix.webcam.sn9c102  0x052e8a68 Bridge::installDeviceRemovedNotification(void*) + 452
6   libSystem.B.dylib            0x9002c3b4 _pthread_body + 96

 

Thread 2 crashed with PPC Thread State 64:
  srr0: 0x00000000fffeff20 srr1: 0x000000000200f030                        vrsave: 0x0000000000000000
    cr: 0x44000442          xer: 0x0000000020000001   lr: 0x0000000004f106c0  ctr: 0x00000000fffeff00
    r0: 0x0000000004f106c0   r1: 0x00000000f01037c0   r2: 0x00000000a0384200   r3: 0x0000000002b4f1c0
    r4: 0x0000000090a16918   r5: 0x0000000000000072   r6: 0x00000000a09a88b4   r7: 0x00000000907dd554
    r8: 0x0000000000003227   r9: 0x0000000090a1691f  r10: 0x0000000000000001  r11: 0x000000006f5f6918
   r12: 0x0000000000020bbb  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
   r16: 0x0000000000000000  r17: 0x0000000000000000  r18: 0x0000000000000000  r19: 0x0000000000000000
   r20: 0x0000000000000000  r21: 0x0000000000000000  r22: 0x0000000000000000  r23: 0x0000000002b527a0
   r24: 0x0000000000744ec0  r25: 0x0000000002b4f1c0  r26: 0x0000000000746e70  r27: 0x0000000000745600
   r28: 0x0000000002b4f1c0  r29: 0x00000000018054f0  r30: 0x00000000f0103bb0  r31: 0x00000000f0103af0

 

Model: PowerBook6,5, BootROM 4.8.5f0, 1 processors, PowerPC G4  (1.1), 1.07 GHz, 768 MB
Graphics: ATI Mobility Radeon 9200, ATY,RV280M9+, AGP, 32 MB
Memory Module: DIMM0/BUILT-IN, 256 MB, built-in, built-in
Memory Module: DIMM1/J31, 512 MB, DDR SDRAM, PC2700U-25330
AirPort: AirPort Extreme, 400.17 (3.90.34.0.p11)
Modem: Jump, , V.92, Version 1.0,
Network Service: Ethernet incorporada, Ethernet, en0
Parallel ATA Device: MATSHITACD-RW  CW-8123, 781.61 MB
Parallel ATA Device: Hitachi IC25N040ATMR04-0, 37.26 GB
USB Device: Generic USB Hub, ALCOR, Up to 12 Mb/sec, 500 mA
USB Device: USB Device, , Up to 12 Mb/sec, 500 mA
USB Device: Microsoft 3-Button Mouse with IntelliEye(TM), Microsoft, Up to 1.5 Mb/sec, 500 mA
USB Device: USB camera, , Up to 12 Mb/sec, 500 mA

 

 

Thats all... thanks for the help!!!!

 

 

 

Roberto.

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

Re: 1.1.9.1 Native Winforms Crash on OSX

Hi Jonathan...
Sorry.. i wrote it wrong here... i've just written the code in here and wrote class with just one s... and thats why.. but heres the code again..
 
using System.Drawing;
using System.Windows.Forms;
 
namespace testwforms
{
    public class mesagebox
    {
        static void Main()
        {
            MessageBox.Show("Helo World");
        }
    }
}
 
This codes compiles fine... but i get after i hit ok on the message box, mono crash.. and then nothing can be executed... al the apps i try to run hungs.. I have Visual C# .Net OEM here, and after this, i've tested creating a winform app with a simple form, one buton, label and text box.. and the same happens... after i close the app, mono crash, and then i cant execute any other compiled test, and even cant run the same test again because mono crash :(
 
Also, i've tested the simple code on Windows with the same version of mono, and its works fine.. 0 problem...
 
Weird?
 
 
Thanks for the answers...
 
 
Roberto.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Re: 1.1.9.1 Native Winforms Crash on OSX

Here's my second test wich i did ussing Visual C#... just droped a combo box, label, text box, check box radio and button... then i've added a simple timer, and well.. this compiles and runs fine on Windows With Mono 1.1.9.1, but dont works on my mac :(
 
 
 
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
 
namespace testwforms
{
 /// <summary>
 /// Summary description for Form1.
 /// </summary>
 public class Form1 : System.Windows.Forms.Form
 {
  private System.Windows.Forms.Label label1;
  private System.Windows.Forms.Button button1;
  private System.Windows.Forms.TextBox textBox1;
  private System.Windows.Forms.CheckBox checkBox1;
  private System.Windows.Forms.RadioButton radioButton1;
  private System.Windows.Forms.ComboBox comboBox1;
  private System.Windows.Forms.Timer timer1;
  private System.ComponentModel.IContainer components;
  private uint Seconds=0;
  public Form1()
  {
   //
   // Required for Windows Form Designer support
   //
   InitializeComponent();
 
   //
   // TODO: Add any constructor code after InitializeComponent call
   //
  }
 
  /// <summary>
  /// Clean up any resources being used.
  /// </summary>
  protected override void Dispose( bool disposing )
  {
   if( disposing )
   {
    if (components != null)
    {
     components.Dispose();
    }
   }
   base.Dispose( disposing );
  }
 
  #region Windows Form Designer generated code
  /// <summary>
  /// Required method for Designer support - do not modify
  /// the contents of this method with the code editor.
  /// </summary>
  private void InitializeComponent()
  {
   this.components = new System.ComponentModel.Container();
   this.label1 = new System.Windows.Forms.Label();
   this.button1 = new System.Windows.Forms.Button();
   this.textBox1 = new System.Windows.Forms.TextBox();
   this.checkBox1 = new System.Windows.Forms.CheckBox();
   this.radioButton1 = new System.Windows.Forms.RadioButton();
   this.comboBox1 = new System.Windows.Forms.ComboBox();
   this.timer1 = new System.Windows.Forms.Timer(this.components);
   this.SuspendLayout();
   //
   // label1
   //
   this.label1.Location = new System.Drawing.Point(16, 8);
   this.label1.Name = "label1";
   this.label1.TabIndex = 1;
   this.label1.Text = "labeltest";
   //
   // button1
   //
   this.button1.Location = new System.Drawing.Point(144, 128);
   this.button1.Name = "button1";
   this.button1.TabIndex = 3;
   this.button1.Text = "button1";
   this.button1.Click += new System.EventHandler(this.button1_Click);
   //
   // textBox1
   //
   this.textBox1.Location = new System.Drawing.Point(16, 32);
   this.textBox1.Name = "textBox1";
   this.textBox1.Size = new System.Drawing.Size(88, 20);
   this.textBox1.TabIndex = 4;
   this.textBox1.Text = "labeltest";
   this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
   //
   // checkBox1
   //
   this.checkBox1.Location = new System.Drawing.Point(144, 32);
   this.checkBox1.Name = "checkBox1";
   this.checkBox1.TabIndex = 5;
   this.checkBox1.Text = "checkBox1";
   //
   // radioButton1
   //
   this.radioButton1.Location = new System.Drawing.Point(144, 56);
   this.radioButton1.Name = "radioButton1";
   this.radioButton1.TabIndex = 6;
   this.radioButton1.Text = "radioButton1";
   //
   // comboBox1
   //
   this.comboBox1.Location = new System.Drawing.Point(144, 8);
   this.comboBox1.Name = "comboBox1";
   this.comboBox1.Size = new System.Drawing.Size(121, 21);
   this.comboBox1.TabIndex = 9;
   this.comboBox1.Text = "comboBox1";
   //
   // timer1
   //
   this.timer1.Enabled = true;
   this.timer1.Interval = 1000;
   this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
   //
   // Form1
   //
   this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
   this.ClientSize = new System.Drawing.Size(282, 164);
   this.Controls.Add(this.comboBox1);
   this.Controls.Add(this.radioButton1);
   this.Controls.Add(this.checkBox1);
   this.Controls.Add(this.textBox1);
   this.Controls.Add(this.button1);
   this.Controls.Add(this.label1);
   this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
   this.Name = "Form1";
   this.Text = "TrackBarValue=0";
   this.ResumeLayout(false);
 
  }
  #endregion
 
  /// <summary>
  /// The main entry point for the application.
  /// </summary>
  [STAThread]
  static void Main()
  {
   Application.Run(new Form1());
  }
 
  private void textBox1_TextChanged(object sender, System.EventArgs e)
  {
   label1.Text=textBox1.Text;
  }
 
  private void button1_Click(object sender, System.EventArgs e)
  {
   MessageBox.Show("Button Pressed");
  }
 
  private void timer1_Tick(object sender, System.EventArgs e)
  {
   Seconds++;
   this.Text="Timer Second: "+Seconds;
  }
 

 }
}
 
Thanks.
 
Roberto.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Re: 1.1.9.1 Native Winforms Crash on OSX

Also, the error i get after the first crash, when i try to run the apps for a second time, is diferent.. here is the main part of the error...
 
 
 
 
Date/Time:      2005-10-03 17:21:41.004 -0300
OS Version:     10.4.2 (Build 8C46)
Report Version: 3
 
Command: mono
Path:    /usr/bin/mono
Parent:  sh [608]
 
Version: ??? (???)
 
PID:    616
Thread: 0
 
Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
 
Thread 0 Crashed:
0   libgdiplus.dylib   0x02780780 GetFontMetrics + 44 (icplusplus.c:27)
1   <<00000000>>  0x02c19210 0 + 46240272
2   <<00000000>>  0x02c14b14 0 + 46222100
3   <<00000000>>  0x02c14a9c 0 + 46221980
4   <<00000000>>  0x02c141d8 0 + 46219736
5   <<00000000>>  0x02c139e8 0 + 46217704
6   <<00000000>>  0x02c138d0 0 + 46217424
7   <<00000000>>  0x02c124f0 0 + 46212336
8   <<00000000>>  0x02af57b8 0 + 45045688
9   <<00000000>>  0x02c12494 0 + 46212244
10  <<00000000>>  0x02c12430 0 + 46212144
11  <<00000000>>  0x02c123f8 0 + 46212088
12  <<00000000>>  0x02c0bc48 0 + 46185544
13  <<00000000>>  0x02c0ba30 0 + 46185008
14  <<00000000>>  0x02c0b9f0 0 + 46184944
15  <<00000000>>  0x02c0b938 0 + 46184760
16  <<00000000>>  0x02c0b68c 0 + 46184076
17  <<00000000>>  0x02c0a92c 0 + 46180652
18  <<00000000>>  0x02c0a518 0 + 46179608
19  <<00000000>>  0x010c5e80 0 + 17587840
20  <<00000000>>  0x004f31fc 0 + 5190140
21  <<00000000>>  0x004f3164 0 + 5189988
22  <<00000000>>  0x004f30a8 0 + 5189800
23  <<00000000>>  0x004f0c20 0 + 5180448
24  mono               0x00030c50 mono_jit_runtime_invoke + 280 (mini.c:9649)
25  mono               0x000a459c mono_runtime_invoke + 84 (object.c:1311)
26  mono               0x000a6154 mono_runtime_exec_main + 416 (object.c:2012)
27  mono               0x000a5c64 mono_runtime_run_main + 856 (object.c:1869)
28  mono               0x00004070 mono_jit_exec + 180 (driver.c:494)
29  mono               0x00004188 main_thread_handler + 248 (driver.c:531)
30  mono               0x000054f4 mono_main + 4456 (driver.c:937)
31  mono               0x00002e14 main + 40 (main.c:6)
32  mono               0x000028dc _start + 392 (crt.c:267)
33  dyld               0x8fe01048 _dyld_start + 60
 
Thread 1:
0   libSystem.B.dylib  0x90042ae8 mach_wait_until + 8
1   libSystem.B.dylib  0x900428a0 nanosleep + 384
2   mono               0x00181e14 collection_thread + 60 (collection.c:43)
3   libSystem.B.dylib  0x9002c3b4 _pthread_body + 96
 
Thread 2:
0   libSystem.B.dylib  0x90056418 semaphore_timedwait_signal_trap + 8
1   libSystem.B.dylib  0x90056284 pthread_cond_timedwait + 704
2   mono               0x00157d50 timedwait_signal_poll_cond + 164 (handles.c:1251)
3   mono               0x00158118 _wapi_handle_timedwait_signal_handle + 520 (handles.c:1338)
4   mono               0x00157ef4 _wapi_handle_wait_signal_handle + 36 (handles.c:1298)
5   mono               0x00144df0 WaitForSingleObjectEx + 548 (wait.c:179)
6   mono               0x0012bb1c finalizer_thread + 116 (gc.c:678)
7   mono               0x000aab84 start_wrapper + 300 (threads.c:297)
8   mono               0x0016046c timed_thread_start_routine + 284 (timed-thread.c:134)
9   libSystem.B.dylib  0x9002c3b4 _pthread_body + 96
 
Thread 0 crashed with PPC Thread State 64:
  srr0: 0x0000000002780780 srr1: 0x000000000200f930                        vrsave: 0x0000000000000000
    cr: 0x44000424          xer: 0x0000000000000004   lr: 0x0000000002c19210  ctr: 0x0000000090008500
    r0: 0x0000000002c19210   r1: 0x00000000bfffef30   r2: 0x0000000000000000   r3: 0x0000000000000000
    r4: 0x00000000011f6080   r5: 0x00000000004ded74   r6: 0x00000000bffff204   r7: 0x00000000bffff204
    r8: 0x00000000bfffef40   r9: 0x00000000011f6080  r10: 0x000000009004600c  r11: 0x00000000bffff020
   r12: 0x0000000090008500  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
   r16: 0x0000000000000000  r17: 0x000000000000000e  r18: 0x00000000004ded40  r19: 0x0000000000000000
   r20: 0x00000000004ded40  r21: 0x0000000000000000  r22: 0x0000000000000009  r23: 0x0000000000000000
   r24: 0x0000000000000000  r25: 0x0000000000000000  r26: 0x00000000011f6080  r27: 0x00000000007414b0
   r28: 0x00000000017eef20  r29: 0x00000000004defc0  r30: 0x00000000bfffef30  r31: 0x00000000bffff850
 
Model: PowerBook6,5, BootROM 4.8.5f0, 1 processors, PowerPC G4  (1.1), 1.07 GHz, 768 MB
Graphics: ATI Mobility Radeon 9200, ATY,RV280M9+, AGP, 32 MB
Memory Module: DIMM0/BUILT-IN, 256 MB, built-in, built-in
Memory Module: DIMM1/J31, 512 MB, DDR SDRAM, PC2700U-25330
AirPort: AirPort Extreme, 400.17 (3.90.34.0.p11)
Modem: Jump, , V.92, Version 1.0,
Network Service: AirPort, AirPort, en1
Parallel ATA Device: MATSHITACD-RW  CW-8123,
Parallel ATA Device: Hitachi IC25N040ATMR04-0, 37.26 GB
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Gmane