[Pkg-mono-devel] Problems with mono 1.1.9 and MWF

Alessio Frusciante algol at firenze.linux.it
Wed Sep 14 08:12:24 UTC 2005


Hi,
I installed the preview packages for mono 1.1.9 from meebey's
repository, but I'm having problems with System.Windows.Forms. Every
time I run an application using DateTimePicker class I get an error like
this:

Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object
in <0x00000> <unknown method>
in (wrapper managed-to-native)
System.Windows.Forms.XplatUIX11:GetFontMetrics (intptr,intptr,int&,int&)
in <0x00034> System.Windows.Forms.XplatUIX11:GetFontMetrics
(System.Drawing.Graphics g, System.Drawing.Font font, System.Int32
ascent, System.Int32 descent)
in <0x0001e> System.Windows.Forms.XplatUI:GetFontMetrics
(System.Drawing.Graphics g, System.Drawing.Font font, System.Int32
ascent, System.Int32 descent)
in <0x00325> System.Windows.Forms.Line:RecalculateLine
(System.Drawing.Graphics g, System.Windows.Forms.Document doc)
in <0x0009c> System.Windows.Forms.Document:RecalculateDocument
(System.Drawing.Graphics g, Int32 start, Int32 end, Boolean optimize)
in <0x00017> System.Windows.Forms.Document:RecalculateDocument
(System.Drawing.Graphics g)
in <0x00028> System.Windows.Forms.TextBoxBase:CalculateDocument ()
in <0x002a7> System.Windows.Forms.TextBoxBase:set_Text (System.String
value)
in <0x0000d> System.Windows.Forms.TextBox:set_Text (System.String value)
in <0x00017> System.Windows.Forms.NumericUpDown:set_Text (System.String
value)
in <0x000e0> System.Windows.Forms.NumericUpDown:UpdateEditText ()
in <0x00449> System.Windows.Forms.UpDownBase:.ctor ()
in <0x00010> System.Windows.Forms.NumericUpDown:.ctor ()
in (wrapper remoting-invoke-with-check)
System.Windows.Forms.NumericUpDown:.ctor ()
in <0x005d1> System.Windows.Forms.MonthCalendar:.ctor ()
in <0x00010> System.Windows.Forms.MonthCalendar:.ctor
(System.Windows.Forms.DateTimePicker owner)
in (wrapper remoting-invoke-with-check)
System.Windows.Forms.MonthCalendar:.ctor
(System.Windows.Forms.DateTimePicker)
in <0x00032> System.Windows.Forms.DateTimePicker:.ctor ()
in (wrapper remoting-invoke-with-check)
System.Windows.Forms.DateTimePicker:.ctor ()
in <0x00042> MonoDateTime.Form1:InitializeComponent ()
in <0x00013> MonoDateTime.Form1:.ctor ()
in (wrapper remoting-invoke-with-check) MonoDateTime.Form1:.ctor ()
in <0x00018> MonoDateTime.Form1:Main ()

Looking around I found this thread:

http://lists.ximian.com/pipermail/mono-winforms-list/2005-August/001949.html

could it be related?
(btw. I'm using debian unstable and I didn't have libgdiplus installed,
but installing libgdiplus 1.1.8-2 made no difference).

Ciao
Alessio




More information about the Pkg-mono-devel mailing list