Merlink Tux's lil' helper
Joined: 01 Sep 2004 Posts: 104 Location: Agrigento, Italy
|
Posted: Fri Apr 01, 2005 1:30 pm Post subject: [DEV-C#] Compilo ma non avvio codice C# |
|
|
Saluti a tutti.
Sto entrando da poco nel mondo del C#, con mono e winelib.
Saltando il motivo per cui uso le classi System.Windows.Forms anziche' Gtk#, ho un piccolo problema.
Riesco a compilare perfettamente il codice con mcs (il compilatore C# di mono). Il codice utilizza solo Windows.Forms.Form...niente controlli esoterici. Compilo senza problemi, avvio senza problemi su windows, ma su linux mi esce fuori questo:
Code: |
Could not load winelib.exe.so
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.Control ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.Win32 ---> System.DllNotFoundException: winelib.exe.so
in <0x00053> (wrapper managed-to-native) System.Windows.Forms.Win32:WineLoadLibrary (string)
in <0x00314> System.Windows.Forms.Win32:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged) System.Windows.Forms.Control:.cctor ()
in <0x000f2> System.Windows.Forms.Control:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged) System.Windows.Forms.ScrollableControl:.ctor ()
in <0x00011> System.Windows.Forms.ScrollableControl:.ctor ()
in <0x00012> System.Windows.Forms.ContainerControl:.ctor ()
in <0x00016> System.Windows.Forms.Form:.ctor ()
in <0x0000a> Ashetic.MyForm:.ctor ()
in <0x0004f> (wrapper remoting-invoke-with-check) Ashetic.MyForm:.ctor ()
in <0x0001b> Ashetic.MyForm:Main (string[])
|
winelib.exe.so e' disponibile in /usr/lib, ed io ho i permessi di accesso.
Il problema, non e' il codice, in quanto su windows si avvia senza intoppi. Inoltre, il codice, si limita a creare una finestra vuota ed attribuirvi una caption.
Spero di non essere troppo OT e di trovare risposte.
Grazie mille a tutti. |
|