Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[DEV-C#] Compilo ma non avvio codice C#
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Merlink
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2004
Posts: 104
Location: Agrigento, Italy

PostPosted: Fri Apr 01, 2005 1:30 pm    Post subject: [DEV-C#] Compilo ma non avvio codice C# Reply with quote

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.
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Fri Apr 01, 2005 1:39 pm    Post subject: Re: [DEV-C#] Compilo ma non avvio codice C# Reply with quote

Merlink wrote:
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


Se fosse java potrebbe trattarsi del classpath.... mi sa che in un forum di mono ne sanno di più perché qui non lo ho visto molto usato.
_________________
Ciao da me!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum