[Mono-bugs] [Bug 31245][Maj] New - [AppDomain] objects created in other domain run in the current domani
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
26 Sep 2002 02:31:17 -0000
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.
http://bugzilla.ximian.com/show_bug.cgi?id=31245
--- shadow/31245 Wed Sep 25 22:31:17 2002
+++ shadow/31245.tmp.23468 Wed Sep 25 22:31:17 2002
@@ -0,0 +1,57 @@
+Bug#: 31245
+Product: Mono/Runtime
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gonzalo@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [AppDomain] objects created in other domain run in the current domani
+
+Steps to reproduce the problem:
+1. Compile and run
+------
+using System;
+
+class A : MarshalByRefObject
+{
+ public string Data
+ {
+ get {
+ return AppDomain.CurrentDomain.GetData
+("integer").ToString ();
+ }
+ }
+}
+
+class C
+{
+ static void Main ()
+ {
+ AppDomain current = AppDomain.CurrentDomain;
+ current.SetData ("integer", 0);
+ AppDomain domain = AppDomain.CreateDomain ("otro");
+ domain.SetData ("integer", 1);
+ object o = domain.GetData ("integer");
+ A a = (A) domain.CreateInstanceAndUnwrap (typeof
+(A).Assembly.FullName, "A");
+ Console.WriteLine (a.Data);
+ }
+}
+---------
+Actual Results:
+0
+
+Expected Results:
+1
+
+Additional Information:
+This bug prevents ApplicationHost creation in System.Web