[Mono-winforms-list] running winforms examples

Thomas Fritzsche tf@noto.de
Tue, 01 Feb 2005 00:09:22 +0100


Hi swf-hackers,

it is really great to see the progress you made (tested latest svn this 
weekend). Now it has become very easy to install and compile mono-swf 
from svs (e.g. the integration of cairo in libgdiplus makes it much 
simpler).  I tested it with this great collection of SWF examples: 
"svn://svn.myrealbox.com/source/trunk/winforms"

Most of the examples run fine here and only the complex controls are a 
little bit slow (yes... performence comes later).
I have a little bit trouble with the control-dock example: If I start 
the application I don't have the "Dock=Bottom" and "Dock=Button (2)". 
Only after resizing the window I get this dock's (it is the same with 
the label example).

The other issue I have is a NullReferenceException I receive with 
different examples (here: combobox, but also with others e.g. textbox, 
taborder):

thomas@wopr:~/mono/build/winforms/combobox$ mono --debug swf-comboboxes.exe
done detecting keyboard:  German keyboard layout
#region #line XplatUI Constructor called

Unhandled Exception: System.NullReferenceException: Object reference not 
set to an instance of an object
in (unmanaged) 0x416c1bd1
in <0x00039> (wrapper remoting-invoke-with-check) 
System.Drawing.Font:ToHfont ()
in [0x00007] (at 
/home/thomas/mono/build/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2324) 
System.Windows.Forms.XplatUIX11:GetFontMetrics 
(System.Drawing.Graphics,System.Drawing.Font,int&,int&)
in [0x00009] (at 
/home/thomas/mono/build/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:442) 
System.Windows.Forms.XplatUI:GetFontMetrics 
(System.Drawing.Graphics,System.Drawing.Font,int&,int&)
in [0x00115] (at 
/home/thomas/mono/build/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs:341) 
System.Windows.Forms.Line:RecalculateLine (System.Drawing.Graphics)
in [0x00125] (at 
/home/thomas/mono/build/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs:2416) 
System.Windows.Forms.Document:RecalculateDocument 
(System.Drawing.Graphics,int,int,bool)
in [0x0000a] (at 
/home/thomas/mono/build/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs:2351) 
System.Windows.Forms.Document:RecalculateDocument (System.Drawing.Graphics)
in [0x0010f] (at 
/home/thomas/mono/build/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs:426) 
System.Windows.Forms.TextBoxBase:set_Text (string)
in [0x00002] (at 
/home/thomas/mono/build/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs:112) 
System.Windows.Forms.TextBox:set_Text (string)
in [0x0003d] (at 
/home/thomas/mono/build/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:485) 
System.Windows.Forms.ComboBox:set_Text (string)
in <0x00533> MyFormProject.MainForm:InitializeComponent ()
in <0x00038> (wrapper remoting-invoke-with-check) 
MyFormProject.MainForm:InitializeComponent ()
in <0x00016> MyFormProject.MainForm:.ctor ()
in <0x00021> (wrapper remoting-invoke-with-check) 
MyFormProject.MainForm:.ctor ()
in <0x0001a> MyFormProject.MainForm:Main (string[])


Thanks for this great work and kind regards,
 Thomas