Problem z MONO - wywala bledy

Tematy związane z oprogramowaniem, instalacją, konfiguracją
Kracak
Posty: 34
Rejestracja: 19 lipca 2007, 09:08

Problem z MONO - wywala bledy

Post autor: Kracak »

gdy staram sie odpalic jakis program w mono zainstalowany wczesniej przez wine pojawia mi sie blad:

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 ---
widze ze jest to wina Display ale nigdzie nie znalalem rozwiazania
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
wiem ze u moich znajomych na gentoo ten program dziala w ten sposob. ma ktos jakis pomysl jak to rozwiazac?
Awatar użytkownika
ruun
Member
Posty: 1366
Rejestracja: 29 marca 2007, 21:07
Lokalizacja: Kruszwica

Post autor: ruun »

Przede wszystkim, odpalaj to

Kod: Zaznacz cały

mono MoorHunt.exe
jako zwykły użytkownik, nie jako root.
Kracak
Posty: 34
Rejestracja: 19 lipca 2007, 09:08

Post autor: Kracak »

jako zwykly

Kod: Zaznacz cały

kracak@debian:~/.wine/drive_c/Program Files/MoorHunt$ mono MoorHunt.exe
type: 10 Not implemented
type: 10 Not implemented

Unhandled Exception: System.NotImplementedException: The requested feature is not implemented [GDI+ status: NotImplemented]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]
  at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000]
  at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean keepAlive) [0x00000]
  at System.Drawing.Icon.GetInternalBitmap () [0x00000]
  at System.Drawing.Icon.ToBitmap () [0x00000]
  at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap ()
  at System.Windows.Forms.XplatUIX11.SetIcon (System.Windows.Forms.Hwnd hwnd, System.Drawing.Icon icon) [0x00000]
  at System.Windows.Forms.XplatUIX11.SetIcon (IntPtr handle, System.Drawing.Icon icon) [0x00000]
  at System.Windows.Forms.XplatUI.SetIcon (IntPtr handle, System.Drawing.Icon icon) [0x00000]
  at System.Windows.Forms.Form.CreateHandle () [0x00000]
  at System.Windows.Forms.Control.CreateControl () [0x00000]
  at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00000]
  at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000]
  at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000]
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:set_Visible (bool)
  at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000]
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000]
  at MoorHunt.x867eb3246b182488.x98869cdcaf2290fb (System.Exception xc5f24384ad39b93a) [0x00000]
  at MoorHunt.x867eb3246b182488.xc447809891322395 (System.String[] xb8f1c3ca2a5059d5) [0x00000]

tu cos znalazlem ale nic nie rozumiem o po szwabsku :(
http://forums.mono-project.de/showthread.php?t=499
Awatar użytkownika
ruun
Member
Posty: 1366
Rejestracja: 29 marca 2007, 21:07
Lokalizacja: Kruszwica

Post autor: ruun »

Kod: Zaznacz cały

The requested feature is not implemented
Ta lista którą mono pokazuje to lista właściwości które jeszcze nie są zaimplementowane. Jak widzę Ty masz chyba najnowszą wersję
Mono JIT compiler version 20070924 (tarball)
więc w tej sytuacji pozostaje Ci chyba tylko czekanie na jakąś aktualizację.
Kracak
Posty: 34
Rejestracja: 19 lipca 2007, 09:08

Post autor: Kracak »

no ale wlasnie chodzi o to ze innym dziala to tylko ze na gentoo :( wiec mysle ze i na debianie powinno odpalic myslalem ze to tego wina

Kod: Zaznacz cały

Unhandled Exception: System.NotImplementedException: The requested feature is not implemented [GDI+ status: NotImplemented] 
ale nie wiem jak to rozwiazac bo libgdiplus mam w najnowszej wersji z repo

walnalem mono z dzisiaj i identyczny blad...
ODPOWIEDZ