[Mono-bugs] [Bug 396983] New: Unresponsiveness in WinForms ( works under Windows with both Mono and Microsoft)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jun 4 04:14:34 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=396983
Summary: Unresponsiveness in WinForms (works under Windows with
both Mono and Microsoft)
Product: Mono: Class Libraries
Version: 1.9.0
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: fredrik.kling at swissqual.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=220007)
--> (https://bugzilla.novell.com/attachment.cgi?id=220007)
Example mono workspace and binary for problem
Description of Problem:
------------------------
Gui becomes unresponsive (like it does not process messages)..
Works under Windows with both Mono 1.9.1 and the Microsoft runtime... Not in
OSX..
Attachment contains Monodevelop workspace and an already compiled version in
the "bin/Debug" directory, this binary runs on both Windows and Mac OS X..
Steps to reproduce the problem:
-------------------------------
1. Create a Form
2. Set it active (form.Show())
3. Instead of "Application.Run(form);" do, "Application.DoEvents()"..
Like: while(true) { Application.DoEvents(); Thread.Sleep(1); }
Actual Results:
---------------
The form (and application) becomes totally unresponsive...
Expected Results:
-----------------
Attached application should change background color each time it is invalidated
(which it is in the while(true)-loop( and therefore the form should flicker...
How often does this happen?
---------------------------
Always..
Additional Information:
-----------------------
Upon inspection of the source in System.Windows.Forms\Application.cs I can see
that the handling is completely different for "Application.DoEvents" and
"Application.RunLoop" (internal function which Run jumps to).
However, I have not digged any further down...
The "RunLoop" dispatches the messages to the application via "FilterMessage"
but "DoEvents" just call's down to XplatUI.DoEvents()
--
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