[Mono-winforms-list] 1.1.9.1 Native Winforms Crash on OSX

Jonathan S. Chambers Jonathan.Chambers at ansys.com
Mon Oct 3 15:49:26 EDT 2005


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20051003/2e5d9bb4/attachment-0001.html


More information about the Mono-winforms-list mailing list