[Mono-winforms-list] When will winforms be working?

Evangelos Arkalis arkalis@acn.gr
Thu, 05 Feb 2004 04:22:11 +0200


SWF are not working using the latest sources. Here is my output, trying
to execute the swf-buttons.exe: 

>mono swf-buttons.exe
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.Drawing.GDIPlus --->
System.EntryPointNotFoundException: GdiplusStartup
in <0x0005c> (wrapper managed-to-native)
System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
in <0x00068> System.Drawing.GDIPlus:.cctor ()
--- End of inner exception stack trace ---

in (unmanaged) System.Drawing.GDIPlus:GdipCreateFontFamilyFromName
(string,intptr,intptr&)
in <0x0007c> System.Drawing.FontFamily:.ctor
(string,System.Drawing.Text.FontCollection)
in <0x00012> System.Drawing.FontFamily:.ctor (string)
in <0x00056> (wrapper remoting-invoke-with-check)
System.Drawing.FontFamily:.ctor (string)
in <0x00057> System.Drawing.Font:.ctor
(string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool)
in <0x00028> System.Drawing.Font:.ctor
(string,single,System.Drawing.FontStyle)
in <0x00083> (wrapper remoting-invoke-with-check)
System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle)
in <0x0003e> System.Drawing.Font:FromHfont (intptr)
in <0x00018> System.Windows.Forms.Control:get_DefaultFont ()
in <0x00055> System.Windows.Forms.Control:get_Font ()
in <0x0002d> System.Windows.Forms.Control:OnHandleCreated
(System.EventArgs)
in <0x0025a> System.Windows.Forms.Control:CreateHandle ()
in <0x00031> System.Windows.Forms.Control:get_Handle ()
in <0x00050> (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:get_Handle ()
in <0x00028> System.Windows.Forms.ButtonBase:set_TextAlign
(System.Drawing.ContentAlignment)
in <0x00629> MyFormProject.MainForm:InitializeComponent ()
in <0x0004f> (wrapper remoting-invoke-with-check)
MyFormProject.MainForm:InitializeComponent ()
in <0x00019> MyFormProject.MainForm:.ctor ()
in <0x0004f> (wrapper remoting-invoke-with-check)
MyFormProject.MainForm:.ctor ()
in <0x0001e> MyFormProject.MainForm:Main (string[])


It seems that Drawing library is broken. 
Finally I managed to run SWF programs using old versions (from my backup
of mono-0.28) of the following dlls:

System.Drawing
System.Drawing.Design
System.Windows.Forms

After replacing of these dlls, everything is OK (at least the winforms
samples)

PS. I dont have gd library installed. Is this required for SWF?