Problem z MONO - wywala bledy
: 04 października 2007, 12:03
				
				gdy staram sie odpalic jakis program w mono zainstalowany wczesniej przez wine pojawia mi sie blad:
widze ze jest to wina Display ale nigdzie nie znalalem rozwiazania
mono mam w wersji
wiem ze u moich znajomych na gentoo ten program dziala w ten sposob. ma ktos jakis pomysl jak to rozwiazac?
			Kod: Zaznacz cały
debian:/home/kracak/.wine/drive_c/Program Files/MoorHunt# mono MoorHunt.exe
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for MoorHunt.x16668035f59b0295 ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.ArgumentNullException: Could not open display (X-Server required. Check you DISPLAY environment variable)
Parameter name: Display
  at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000]
  at System.Windows.Forms.XplatUIX11..ctor () [0x00000]
  at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000]
  at System.Windows.Forms.XplatUI..cctor () [0x00000] --- End of inner exception stack trace ---
  at System.Windows.Forms.Control.get_CreateParams () [0x00000]
  at System.Windows.Forms.TextBoxBase.get_CreateParams () [0x00000]
  at System.Windows.Forms.RichTextBox.get_CreateParams () [0x00000]
  at System.Windows.Forms.Control.InternalSizeFromClientSize (Size clientSize) [0x00000]
  at System.Windows.Forms.Control.ClientSizeFromSize (Size size) [0x00000]
  at System.Windows.Forms.Control..ctor () [0x00000]
  at System.Windows.Forms.TextBoxBase..ctor () [0x00000]
  at System.Windows.Forms.RichTextBox..ctor () [0x00000]
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.RichTextBox:.ctor ()
  at MoorHunt.x16668035f59b0295..cctor () [0x00000] --- End of inner exception stack trace ---
mono mam w wersji
Kod: Zaznacz cały
debian:/home/kracak/.wine/drive_c/Program Files/MoorHunt# mono -V
Mono JIT compiler version 20070924 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. [url]www.mono-project.com[/url]
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none