[Mono-bugs] [Bug 79517][Blo] New - Link Label crashes when setting Text property
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Sep 28 03:38:08 EDT 2006
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 mrj001 at shaw.ca.
http://bugzilla.ximian.com/show_bug.cgi?id=79517
--- shadow/79517 2006-09-28 03:38:07.000000000 -0400
+++ shadow/79517.tmp.9547 2006-09-28 03:38:07.000000000 -0400
@@ -0,0 +1,87 @@
+Bug#: 79517
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: Slackware 10.2/Linux 2.6.15
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: mrj001 at shaw.ca
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Link Label crashes when setting Text property
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. Run attached code under mono
+2. Observe crash
+3. Run same code under .NET framework 1.1; no crash.
+
+Actual Results:
+Here is the output when the program crashes:
+mj at ds9:~/issues/mono/LinkLabel_Crash$ mono LinkLabel.exe
+Mono System.Windows.Forms Assembly [$auto_build_revision$]
+KDE colorscheme read
+
+Unhandled Exception: System.ArgumentException: Invalid Parameter. A null
+reference or invalid value was found.
+ at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]
+ at System.Drawing.Graphics.MeasureCharacterRanges (System.String text,
+System.Drawing.Font font, RectangleF layoutRect,
+System.Drawing.StringFormat stringFormat) [0x00000]
+ at (wrapper remoting-invoke-with-check)
+System.Drawing.Graphics:MeasureCharacterRanges
+(string,System.Drawing.Font,System.Drawing.RectangleF,System.Drawing.StringFormat)
+ at System.Windows.Forms.LinkLabel.CreateLinkPieces () [0x00000]
+ at System.Windows.Forms.LinkLabel.OnTextChanged (System.EventArgs e)
+[0x00000]
+ at System.Windows.Forms.Control.set_Text (System.String value) [0x00000]
+ at System.Windows.Forms.LinkLabel.set_Text (System.String value)
+[0x00000]
+ at MRJ.LinkLabelIssue.Form1.SetLabelText (System.String s) [0x00000]
+ at MRJ.LinkLabelIssue.Form1.BtnCrash_Click (System.Object sender,
+System.EventArgs e) [0x00000]
+ at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)
+ at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000]
+ at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000]
+ at System.Windows.Forms.ButtonBase.OnMouseUp
+(System.Windows.Forms.MouseEventArgs mevent) [0x00000]
+ at System.Windows.Forms.Button.OnMouseUp
+(System.Windows.Forms.MouseEventArgs e) [0x00000]
+ at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message m)
+[0x00000]
+ at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message
+m) [0x00000]
+ at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message m)
+[0x00000]
+ at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message m) [0x00000]
+ at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x00000]
+ at System.Windows.Forms.XplatUIX11.DispatchMessage
+(System.Windows.Forms.MSG msg) [0x00000]
+ at System.Windows.Forms.XplatUI.DispatchMessage
+(System.Windows.Forms.MSG msg) [0x00000]
+ at System.Windows.Forms.Application.RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context) [0x00000]
+ at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
+mainForm) [0x00000]
+ at MRJ.LinkLabelIssue.Form1.Main () [0x00000]
+
+
+Expected Results:
+-Expected no crash as under .NET framework.
+
+How often does this happen?
+Always
More information about the mono-bugs
mailing list