[Mono-bugs] [Bug 31425][Wis] Changed - Thread inmediatety starts. It should wait to Start.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
30 Sep 2002 08:24:40 -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 gonzalo@ximian.com.

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

--- shadow/31425	Sun Sep 29 07:02:19 2002
+++ shadow/31425.tmp.22372	Mon Sep 30 04:24:40 2002
@@ -10,14 +10,13 @@
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: tapia@eitig.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
-Summary: Problem with threads.
+Summary: Thread inmediatety starts. It should wait to Start.
 
 Description of Problem:
 
 We have a class with that code:
 
 public class Class1
@@ -102,6 +101,19 @@
    public static void Main ()
    {
       Class1 object1 = new Class1();
       Class1 object2 = new Class1();
    }
 }
+
+------- Additional Comments From gonzalo@ximian.com  2002-09-30 04:24 -------
+The obvious output is that the program does nothing.
+
+Nobody is either starting the thread nor calling Method.
+
+BUT... while the program does nothing with MS runtime, it fails with a
+NullReferenceException and even output "write something" (on linux).
+On windows it does not do anything but it does never finish.
+
+My guess is that thread is starting to run after its creation. It
+should wait until Start is called on the thread.
+