[Mono-bugs] [Bug 71695][Maj] New - .NET Framework has a different behavior compared to mono, Threading and a missing command prompt
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 24 Jan 2005 16:04:00 -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 andreas.weiss@de.bp.com.
http://bugzilla.ximian.com/show_bug.cgi?id=71695
--- shadow/71695 2005-01-24 16:04:00.000000000 -0500
+++ shadow/71695.tmp.18597 2005-01-24 16:04:00.000000000 -0500
@@ -0,0 +1,93 @@
+Bug#: 71695
+Product: Mono: Class Libraries
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: andreas.weiss@de.bp.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: .NET Framework has a different behavior compared to mono, Threading and a missing command prompt
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. compile the attached code
+2. run it using mono and the .NET Framework
+3. press enter
+
+Actual Results:
+I don't get back the command prompt using the mono runtime. The example
+works using .NET Framework 1.1.
+
+Expected Results:
+I expect to get back the command prompt.
+
+How often does this happen?
+every time
+
+Additional Information:
+
+working code example
+
+using System;
+
+namespace ConsoleApplication8
+{
+ class Class1
+ {
+
+ private static System.Collections.ArrayList ArrayList1;
+
+ [STAThread]
+ static void Main(string[] args)
+ {
+ ArrayList1 = new System.Collections.ArrayList();
+
+ System.Threading.Thread thr = new
+System.Threading.Thread(new System.Threading.ThreadStart(Mythread));
+
+ ArrayList1.Add(thr);
+
+ thr.Start();
+
+ Console.WriteLine("Press Enter to stop the Thread
+\n");
+ Console.ReadLine();
+
+ Threadstop();
+
+ Console.WriteLine("You get back a command prompt
+using the .NET Framework Runtime");
+ Console.WriteLine("You didn't get back a command
+prompt using mono");
+ }
+
+ static private void Mythread()
+ {
+ do
+ {
+ Console.WriteLine("Hello from Mythread");
+ System.Threading.Thread.Sleep(1000);
+ }
+ while(true);
+ }
+
+ static private void Threadstop()
+ {
+ foreach(System.Threading.Thread thr in ArrayList1)
+ {
+ thr.Abort();
+ }
+ }
+ }
+}