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

max aranym@adelphia.net
Sun, 8 Feb 2004 09:45:26 -0800


This explains why I haven't been able to make it work either for about three 
weeks now. I've even tried to recompile wine ! (what a mistake, it took 5 
hours on my 450).

I've tried to look at the source and understand by myself, but it's very messy 
out there. it seems like there's different versions of code under class/
System.Windows.Forms , and I don't know what folders we're supposed to be 
working with.

if someone can let us know what is the code we're supposed to be looking at, 
I'm definitely willing to help debug those forms and make them work

On Wednesday 04 February 2004 18:22, Evangelos Arkalis wrote:
> 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.GdiplusStartupOu
>tput&) 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,bo
>ol) 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?
>
>
>
>
>
>
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list