[Mono-bugs] [Bug 82124][Nor] Changed - Adding a Console.WriteLine to Mono.WebServer causes runtime problems on amd64 and x86

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 8 17:25:28 EDT 2007


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 vargaz at gmail.com.

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

--- shadow/82124	2007-08-08 09:07:04.000000000 -0400
+++ shadow/82124.tmp.21914	2007-08-08 17:25:28.000000000 -0400
@@ -80,6 +80,35 @@
 stack frame above the current one - the same effect occurs. Throwing
 an exception in the method, catching it and printing, otoh, works
 properly - but only the current frame is printed.
 
 ------- Additional Comments From mhabersack at novell.com  2007-08-08 09:07 -------
 Also, the call to Close() is made cross AppDomain boundaries
+
+------- Additional Comments From vargaz at gmail.com  2007-08-08 17:25 -------
+A minimal testcase:
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+
+public class Tests : MarshalByRefObject {
+
+	public void foo (int id) {
+		if (id == 5) {
+			AppDomain domain = AppDomain.CreateDomain ("Test5");
+			Tests o = (Tests)domain.CreateInstanceFromAndUnwrap (typeof
+(Tests).Assembly.Location, "Tests");
+		
+			o.foo (6);
+		} else {
+			Console.WriteLine (Environment.StackTrace);
+		}
+	}
+
+	public static void Main (String[] args) {
+		AppDomain domain = AppDomain.CreateDomain ("Test4");
+		Tests o = (Tests)domain.CreateInstanceFromAndUnwrap (typeof
+(Tests).Assembly.Location, "Tests");
+		
+		o.foo (5);
+	}
+}
+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


More information about the mono-bugs mailing list