[Mono-bugs] [Bug 70860][Nor] Changed - No stacktrace with exceptions in other threads

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 28 Dec 2004 20:46:46 -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 fxjrlists@yahoo.com.br.

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

--- shadow/70860	2004-12-28 20:35:59.000000000 -0500
+++ shadow/70860.tmp.10860	2004-12-28 20:46:46.000000000 -0500
@@ -127,6 +127,38 @@
 		Console.WriteLine(o.GetHashCode ());
 	}
 
 
 }
 
+
+------- Additional Comments From fxjrlists@yahoo.com.br  2004-12-28 20:46 -------
+
+kangaroo noticed that in this last example there could be a race
+condition which could prevent the bug from appear. Also, according to
+kangaroo, specially in "ppc/s390 which have long prolog" which would
+finish application before the thread method could run.
+
+
+So I think this could be prevented with a simple Thread.Sleep() call.
+
+
+using System;
+using System.Threading;
+
+
+class NullApp
+{
+	static void Main (string [] args)
+	{
+		new Thread(new ThreadStart (NullApp.Run)).Start();
+                Thread.Sleep(1500);
+	}
+
+	static public void Run()
+	{
+		object o = null;
+		Console.WriteLine(o.GetHashCode ());
+	}
+
+
+}