[Mono-bugs] [Bug 436790] ComboBox.OnDrawItem() invoked with useless data

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 22 05:32:23 EDT 2008


User awunwpa7 at yahoo.com.ph added comment

--- Comment #3 from Steve Odbc <awunwpa7 at yahoo.com.ph>  2008-10-22 03:32:22 MDT ---
You are right: I get lots of minus ones with dotNet using your code. The thing
is, as I said, I didn't set up an event handler, but I built a child class of

Acually I built a larger child class and in the overridden OnDrawItem() method
I was very carelessly using the index the framework gave me to find the text to
draw (I never expected a wrong index). And this worked perfect with dotNet. But
when I tested it with MONO, I got an IndexOutOfRange exception. And then I
found, that MONO gave me a negative index.

All I can say is, that up till now I haven't seen an negative index in dotNet,
when using override. So there might be an internal difference in behavior
between the method OnDrawItem() and the event DrawItem.

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