http://bugs.winehq.org/show_bug.cgi?id=31280
--- Comment #18 from Simon Haynes spacejock@gmail.com 2012-07-23 20:08:31 CDT --- (In reply to comment #17)
(In reply to comment #16)
(In reply to comment #14)
Could you make sure we have a wine bug for the mono/winforms issue? Maybe someone in the Wine community will care more about it.
I reported the Mono bug on their system. You'll find the details right here along with my sample code that triggers the error:
https://bugzilla.xamarin.com/show_bug.cgi?id=5040
The effect of the bug is to cause an infinite loop in modal dialogs, which locks up any program affected.
(Also note my Comment 1 on the xamarin bug report page:
"I'm wondering whether setting DialogResult = Windows.Forms.DialogResult.OK is actually firing the FormClosing event?"
Okay, this is off-topic for the bug I'm reporting here, but I just inspected the source for Mono 2.10.9 and found this comment in the source for DialogResult in Form.cs:
if (dialog_result != DialogResult.None && is_modal) RaiseCloseEvents (false, false); // .Net doesn't send WM_CLOSE here. }
I'm guessing that's the issue in Mono, and the reason the behaviour is different.