Hallo zusammen,
Ich bin nun stolzer Besitzer eines Raspberry Pi. Habe nun ein wenig damit rumgespielt und habe nun folgendes Problem:
Stand:
- Raspberry PI - B- 512 MB
- Raspbian "Wheezy" auf den aktuellsten Stand
- Mono komplett auf den aktuellsten Stand
- Zugriff auf das Target über Windows: "Remotedesktop"; Raspberry Pi: "XRDS"
Winforms-Anwendung:
using System;
using System.Windows.Forms;
using System.Drawing;
class Program
{
public static void Main(string[] args)
{
Application.EnableVisualStyles();
var f=new Form();
f.SetBounds(0,0,200,200);
Application.Run(f);
}
}
Alles anzeigen
Kompilieren hat funktioniert. Ich habe nun eine EXE Datei. Beim Ausführen "mono Windowapp.exe" erhalte ich nun folgende Fehlermeldung:
ZitatAlles anzeigen
Xlib: extension "RANDR" missing on display ":10.0".
Stacktrace:at System.Drawing.Font.CreateFont (string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool) <0x00143>
at System.Drawing.Font..ctor (string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool) <0x0007f>
at System.Drawing.Font..ctor (string,single,string) <0x00057>
at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor (string,single,string) <0xffffffff>
at System.Drawing.SystemFonts.get_DefaultFont () <0x00073>
at System.Windows.Forms.Theme..ctor () <0x0002f>
at System.Windows.Forms.ThemeWin32Classic..ctor () <0x00013>
at System.Windows.Forms.ThemeVisualStyles..ctor () <0x00013>
at System.Windows.Forms.ThemeEngine..cctor () <0x0007f>
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
at System.Windows.Forms.X11DesktopColors..cctor () <0x000bb>
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
at System.Windows.Forms.XplatUIX11..ctor () <0x001af>
at System.Windows.Forms.XplatUIX11.GetInstance () <0x0005b>
at System.Windows.Forms.XplatUI..cctor () <0x00157>
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
at System.Windows.Forms.Application.EnableVisualStyles () <0x00023>
at Program.Main (string[]) <0x00013>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>Native stacktrace:
Debug info from gdb:
Cannot access memory at address 0x0
Cannot access memory at address 0x0
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb6766460 (LWP 2481)]
0xb6e6d7d0 in read () from /lib/arm-linux-gnueabihf/libpthread.so.0
Id Target Id Frame
2 Thread 0xb6766460 (LWP 2481) "mono" 0xb6e6c700 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
* 1 Thread 0xb6f3f000 (LWP 2480) "mono" 0xb6e6d7d0 in read () from /lib/arm-linux-gnueabihf/libpthread.so.0Thread 2 (Thread 0xb6766460 (LWP 2481)):
#0 0xb6e6c700 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1 0x00195a40 in mono_sem_wait ()
#2 0x000ea384 in ?? ()
#3 0x000ea384 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)Thread 1 (Thread 0xb6f3f000 (LWP 2480)):
#0 0xb6e6d7d0 in read () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1 0xb6e6d044 in __pthread_enable_asynccancel () from /lib/arm-linux-gnueabihf/libpthread.so.0
#2 0x00096e60 in ?? ()
#3 0x00096e60 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Leider habe ich keine Ahnung woran das liegen könnte, da ich u.a. auch recht neu bin in der Handhabung von Linux und Raspberry Pi. Für jegliche Hilfe, Tips und Problemlösungen wäre ich sehr dankbar.
Gruß
Zordanus
Ergänzend möchte ich hinzufügen das ich zwar den Beitrag gelesen habe (Mono Forschungsbeitrag), aber im Internet viele Beispiele gefunden habe wo sich eine WebForms Anwendung starten ließ.
Jetzt die Frage: Liegt das nun am Mono??