[Mono-bugs] [Bug 75871][Nor] Changed - DateTimePicker not working

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Aug 28 09:00:40 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by paul at all-the-johnsons.co.uk.

http://bugzilla.ximian.com/show_bug.cgi?id=75871

--- shadow/75871	2005-08-21 13:47:19.000000000 -0400
+++ shadow/75871.tmp.19475	2005-08-28 09:00:40.000000000 -0400
@@ -55,6 +55,92 @@
 
 ------- Additional Comments From kornelpal at hotmail.com  2005-08-21 13:47 -------
 If you want to ensure whether something is an X11 bug try it using 
 Mono on Windows rather than .NET Framework on Windows.
 
 The behaviour is the same with Mono on Windows as with Mono on X11.
+
+------- Additional Comments From paul at all-the-johnsons.co.uk  2005-08-28 09:00 -------
+Anything using datetime is currently generating throwback such as 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 <0x00293> 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 <0x000da> 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> Form1:InitialiseComponent ()
+in <0x00013> Form1:.ctor ()
+in (wrapper remoting-invoke-with-check) Form1:.ctor ()
+in <0x00018> Form1:Main ()
+
+(generated from the following source)
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+public class Form1:Form
+{
+  private System.Windows.Forms.DateTimePicker dtp;
+  
+  public Form1()
+  {
+    InitialiseComponent();
+  }
+  
+  private void InitialiseComponent()
+  {
+    this.dtp = new System.Windows.Forms.DateTimePicker();    
+
+    this.dtp.Location = new System.Drawing.Point(8, 8);
+    this.dtp.Name = "date time picker";
+    this.dtp.Size = new System.Drawing.Size(288, 20);
+
+    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
+    this.ClientSize = new System.Drawing.Size(350, 130);
+    this.Controls.Add(this.dtp);
+    this.Name = "Form1";
+    this.Text = "Testing 1..2..3";
+    this.Load += new System.EventHandler(this.Form1_Load);
+  }
+  
+  [STAThread]
+  static void Main()
+  {
+    Application.Run(new Form1());
+  }
+
+  private void Form1_Load(object s, System.EventArgs e)
+  {}
+
+}


More information about the mono-bugs mailing list