Простенькая прога, писанная на C#, скомпиленная в VS не запускается под mono. При старте появляется форма проги и сразу исчезает,в консоле он так отругался:
type: 9 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 first_pod_linux.Program.Main () [0x00000]
помогите, просветите.
Помогите запустить С#-прогу под mono-ой
Модератор: Модераторы разделов
-
divenvrsk
- Сообщения: 379
- ОС: Ubuntu, openSuSE
Re: Помогите запустить С#-прогу под mono-ой
читаю за тебя что написано "The requested feature is not implemented", что в переводе на русский значит "Запрошенная функция не реализована".
-
zayac_val
- Сообщения: 38
- ОС: openSuse10.3
-
Liksys
- Сообщения: 2910
Re: Помогите запустить С#-прогу под mono-ой
Не реализованы.
-
Gogast
- Сообщения: 549
- ОС: Gentoo amd64
-
zayac_val
- Сообщения: 38
- ОС: openSuse10.3
Re: Помогите запустить С#-прогу под mono-ой
Тогда может подскажите почему при сборке из исходников пакета gtksourceview-sharp-2.0-0.10 после команды make у еня валятся такие ошибки:
generated/SourceBuffer.cs(146,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(161,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(217,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(232,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(289,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(304,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(359,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(374,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
Compilation failed: 8 error(s), 0 warnings
make[1]: *** [gtksourceview-sharp.dll] Ошибка 1
make[1]: Leaving directory `/root/install/gtksorceview-sharp/gtksourceview-sharp-2.0-0.10/gtksourceview'
make: *** [all-recursive] Ошибка 1
что именно я пропустил ?
generated/SourceBuffer.cs(146,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(161,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(217,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(232,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(289,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(304,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(359,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
generated/SourceBuffer.cs(374,33): error CS0234: The type or namespace name `ExceptionManager' does not exist in the namespace `GLib'. Are you missing an assembly reference?
Compilation failed: 8 error(s), 0 warnings
make[1]: *** [gtksourceview-sharp.dll] Ошибка 1
make[1]: Leaving directory `/root/install/gtksorceview-sharp/gtksourceview-sharp-2.0-0.10/gtksourceview'
make: *** [all-recursive] Ошибка 1
что именно я пропустил ?
-
serzh-z
- Бывший модератор
- Сообщения: 8259
- Статус: Маньяк
- ОС: Arch, Fedora, Ubuntu
Re: Помогите запустить С#-прогу под mono-ой
Для пустоголовых ламеров сообщю - биндинг Mono для GLib слишком старый и не содержит класс ExceptionManager.
-
zayac_val
- Сообщения: 38
- ОС: openSuse10.3
Re: Помогите запустить С#-прогу под mono-ой
Ну то,что класс ExceptionManager не содержится в пространстве имен GLib это понятно, вы скажите как собрать прогу , исходники закачаны с сайта http://www.monodevelop.com/Download
-
Liksys
- Сообщения: 2910
Re: Помогите запустить С#-прогу под mono-ой
Mono, имхо, это треш, каких поискать. Для прикладного софта думаю есть более достойные проги, чем написанные на C# под линуксом, да еще и запускающиеся из екзешника на виртуальной машине.
Если же тебе по роду профессии нужен C#, то лучше поставь VS и не парь моск.
Если же тебе по роду профессии нужен C#, то лучше поставь VS и не парь моск.