[Mono-bugs] [Bug 78241][Maj] Changed - CreateThread failure/out of wapi handles slots

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 2 11:36:55 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by informatique.internet at fiducial.fr.

http://bugzilla.ximian.com/show_bug.cgi?id=78241

--- shadow/78241	2006-05-02 11:36:02.000000000 -0400
+++ shadow/78241.tmp.4222	2006-05-02 11:36:55.000000000 -0400
@@ -187,6 +187,45 @@
 System.MulticastDelegate:begin_invoke_IAsyncResult_object_AsyncCallback_object
 (object,System.AsyncCallback,object)
 in <0x00013> System.Threading.ThreadPool:QueueUserWorkItem
 (System.Threading.WaitCallback callback, System.Object state)
 in <0x000aa> System.Timers.Timer:StartTimer ()
 in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
+
+------- Additional Comments From informatique.internet at fiducial.fr  2006-05-02 11:36 -------
+Small test case with thread :
+// project created on 20/03/2006 at 16:49
+using System;
+using System.Globalization;
+using System.Threading;
+
+class MainClass
+{
+	int nb_thread=0;
+	object obj=new object();
+	
+	public void ThreadMethod()
+	{
+		lock(obj)
+			nb_thread++;
+		Console.WriteLine("Thread "+nb_thread+" Created");
+	}
+	
+	
+	public static void Main(string[] args)
+	{
+		MainClass prog=new MainClass();
+		prog.Launch();
+	}
+	
+	public void Launch()
+	{
+		for (int i=0;i<10000;i++)
+		{
+			Thread thread=new Thread(new ThreadStart(this.ThreadMethod));
+			thread.IsBackground=true;
+			thread.Start();
+		}
+		
+	}
+	
+}


More information about the mono-bugs mailing list