[Mono-bugs] [Bug 31425][Wis] Changed - Problem with threads.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
29 Sep 2002 11:02:19 -0000


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 tapia@eitig.com.

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

--- shadow/31425	Sat Sep 28 11:26:54 2002
+++ shadow/31425.tmp.7564	Sun Sep 29 07:02:19 2002
@@ -68,6 +68,40 @@
 
 ------- Additional Comments From dick@ximian.com  2002-09-28 11:26 -------
 Where is SegThread defined? Where is it assigned a value?
 
 Please supply a self-contained test case that I can compile and run here.
 
+
+------- Additional Comments From tapia@eitig.com  2002-09-29 07:02 -------
+I'm sorry. This is the self-contained sample:
+
+---------------------------------------------
+
+using System;
+using System.Threading;
+
+public class Class1
+{
+   public Thread thread;
+   public Class1 ()
+   {
+      thread = new Thread (new ThreadStart(Method));
+   }
+
+   public void Method ()
+   {
+      if (thread.ThreadState == ThreadState.Unstarted) {
+	thread.Start();
+	Console.WriteLine ("write something");
+      }
+   }				
+}
+
+public class Class2
+{
+   public static void Main ()
+   {
+      Class1 object1 = new Class1();
+      Class1 object2 = new Class1();
+   }
+}