[Mono-bugs] [Bug 694908] Can't deal with paint exception in OnThreadException - difference from .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 19 22:28:40 EDT 2011



--- Comment #2 from Eberhard Beilharz <eb1 at sil.org> 2011-05-20 02:28:38 UTC ---
Created an attachment (id=430539)
 --> (http://bugzilla.novell.com/attachment.cgi?id=430539)
Suggested fix

Attached is a patch that fixes this problem. It implements the way .NET
behaves: when we get an exception while processing a WM_PAINT message, we
remove the control that threw the exception from it's parents control
collection and replace it with a new control that paints a red cross.

Note that on Linux the cross is slightly different drawn than on .NET on
Windows (although the same code run on .NET produces the correct result). This
is caused by a bug in libgdiplus/cairo rectangle drawing.

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