[Mono-bugs] [Bug 681654] New: Calling Application.DoEvents inside a modal ShowDialog lets events through
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Mar 22 13:17:26 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=681654
https://bugzilla.novell.com/show_bug.cgi?id=681654#c0
Summary: Calling Application.DoEvents inside a modal ShowDialog
lets events through
Classification: Mono
Product: Mono: Class Libraries
Version: 2.8.x
Platform: x86
OS/Version: Windows 7
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: xocotl at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15)
Gecko/20110303 Firefox/3.6.15
If I use Application.DoEvents inside a modal ShowDialog, the dialog effectively
becomes non-modal in the sense that it allows me to click on things behind it
(at least on Windows).
Is this because DoEvents in XplatUI is just a generic PeekMessage loop, whereas
Application's RunLoop has a bunch of extras (which could be moved to a message
filter to make them run in the DoEvents)? Or is there something more
complicated?
In any case, this is a definite bug. In Windows I am able to call
Application.DoEvents and the dialog stays modal. Pretty serious since it makes
repainting during a long-running operation impractical.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
--
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