[Mono-bugs] [Bug 661750] Setting value of hexadecimal NumericUpDown control to 0 crashes Mono runtime

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 1 12:43:03 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=661750

https://bugzilla.novell.com/show_bug.cgi?id=661750#c1


Thomas Goldstein <stifu at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stifu at free.fr

--- Comment #1 from Thomas Goldstein <stifu at free.fr> 2011-01-01 17:43:02 UTC ---
Hmm... I'm surprised there is no standard way to format a decimal value to
hexa. We'd have avoided this mess, then.

Anyway, what do you think should be done?
If I change the code from:


if (num_chars == 0) {
    Text = "0";
}
//etc...


To:


if (num_chars == 0) {
    Text = "0";
}
else {
//etc...
}


Then things seem to work right. Does that look right to you, too?
We could post about it on the mailing list to see what others think, if
necessary.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list