LINUX.ORG.RU

MONO


0

0

апдейтнулся сегодня с 1.0.6 до 1.1.8 и перестали работать Windows.Forms...компилится, но не выполняется

вот пример:

using System; using System.Windows.Forms;

class mmm{ public static void Main(string[] args){ MessageBox.Show("Hello!!!!!!!!!!!", "TEST", MessageBoxButtons.OK, MessageBoxIcon.Information); } }

$ mcs -r:System.Windows.Forms 1.cs

$ mono 1.exe

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for MessageBoxForm ---> System.InvalidCastException: Cannot cast from source type to destination type. in <0x0005b> System.Windows.Forms.MessageBox+MessageBoxForm:.cctor ()--- End of inner exception stack trace ---

in <0x00000> <unknown method> in <0x0002c> System.Windows.Forms.MessageBox:Show (System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon) in <0x00015> mmm:Main (System.String[] args)

кто знает в чём проблема?

Ответ на: комментарий от golodranez

блин, тут что с моно никто кроме меня с Селектором не работает?

golodranez ★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.