[Mono-bugs] [Bug 379524] Environment. Exit in separate thread results in thread creation failure
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Apr 18 08:04:42 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=379524
User gert.driesen at pandora.be added comment
https://bugzilla.novell.com/show_bug.cgi?id=379524#c2
--- Comment #2 from Gert Driesen <gert.driesen at pandora.be> 2008-04-18 06:04:41 MST ---
After updating from SVN, I no longer get the exception but instead the
application most of the times just hangs.
I reduced the number of threads I create to ensure it is not related to bug
#379522:
using System;
using System.Globalization;
using System.Threading;
class Program
{
static int Main (string [] args)
{
for (int i = 0; i < 30; ++i) {
Thread thread = new Thread (new ThreadStart (Test));
if (i != 20)
thread.CurrentCulture = new CultureInfo
("en-CA");
thread.Start ();
}
return 1;
}
static void Test ()
{
string name = Thread.CurrentThread.CurrentCulture.Name;
if (name != "en-CA")
Environment.Exit (0);
}
}
--
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