[Mono-bugs] [Bug 39377][Nor] New - Thread.IsAlive is still Ture when thread is finished

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 8 Mar 2003 22:48:14 -0500 (EST)


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 matthias204@mac.com.

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

--- shadow/39377	Sat Mar  8 22:48:14 2003
+++ shadow/39377.tmp.11574	Sat Mar  8 22:48:14 2003
@@ -0,0 +1,51 @@
+Bug#: 39377
+Product: Mono/Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Gentoo 1.4rc2 / mono 0.23
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: matthias204@mac.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Thread.IsAlive is still Ture when thread is finished
+
+Description of Problem:
+Thread.IsAlive is still Ture when thread is finished
+Steps to reproduce the problem:
+        class Class1
+        {
+                public static void bla()
+                {
+                        Console.WriteLine("me thread");
+                }
+
+                static void Main(string[] args)
+                {
+                        Thread myThread = new Thread( new ThreadStart( bla ) );
+                        Console.WriteLine(myThread.IsAlive.ToString());
+                        Console.WriteLine("starting thread");
+                        myThread.Start();
+                        Console.WriteLine(myThread.IsAlive.ToString());
+                        myThread.Join();
+                        Console.WriteLine("thread ended");
+                        Console.WriteLine(myThread.IsAlive.ToString());
+                }
+        }
+
+
+Actual Results:
+Thread.IsAlive == True
+
+Expected Results:
+Thread.IsAlive == False
+
+
+How often does this happen? 
+everytime