[Mono-bugs] [Bug 53078][Nor] New - Thread not disposed if Start not called

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 19 Jan 2004 19:23:12 -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 gonzalo@ximian.com.


--- shadow/53078	2004-01-19 19:23:12.000000000 -0500
+++ shadow/53078.tmp.11547	2004-01-19 19:23:12.000000000 -0500
@@ -0,0 +1,29 @@
+Bug#: 53078
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Cc: derek.mcumber@datamtnsol.com,dick@ximian.com
+Summary: Thread not disposed if Start not called
+Compile and run the attached test-19.cs sent by Derek McUmber.
+From another terminal: ps aux | grep mono (or whatever)
+You'll see that all those threads that are created but on which Start is
+not called are there, consuming memory and doing nothing.
+I created the attached test-19-small.cs which show the same problem.
+The question, Dick, is if we can delay CreateThread until th.Start() is
+actually called (a patch is provided) or if we have any other means for the
+GC to know that these objects are out of scope and finalize them.