Bug 311564 (MONO31245) - [AppDomain] objects created in other domain run in the current domani
Summary: [AppDomain] objects created in other domain run in the current domani
Status: RESOLVED FIXED
Alias: MONO31245
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other All
: P3 - Medium : Major
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-26 05:31 UTC by Gonzalo Paniagua Javier
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:01:56 UTC


---- Reported by gonzalo@ximian.com 2002-09-25 22:31:17 MST ----

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



---- Additional Comments From gonzalo@ximian.com 2003-02-04 16:34:02 MST ----

Patrik fixed it.

This bug blocked bug(s) 36262 36280 36598.