https://bugzilla.novell.com/show_bug.cgi?id=449435
Summary: Strange behaviour when using multiple Mainloops
Product: Mono: Class Libraries
Version: SVN
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
Running the following code results in different, yet always strange and
unexpected, behaviour:
using System.Threading;
using System.Windows.Forms;
class Test : Form {
static void Main () {
Application.Run (new Test ());
}
Test () {
Button b = new Button ();
b.Text = "Hello";
Controls.Add (b);
b.Click += delegate {
Thread t = new Thread (delegate () {
Application.Run (new Test ());
});
t.Start ();
};
}
}
On Windows and .Net the same code runs fine, i.e. I successfully populated my
screen with far more than 20 Windows without any problems, on Mono/Linux I
sometimes don't even manage to open a second window and probably never managed
to make it more than three or four, before no events were processed any more,
and I had to use Ctrl-C to stop the application.
The problems occurs with
Mono JIT compiler version 1.9.1 (tarball)
as well as with
Mono JIT compiler version 2.3 (/trunk/mono r119699 Di 25. Nov 14:56:23 CET
2008)
--
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs