Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Child AppDomain code points not resolved #191

Open
ezverev opened this issue Jul 27, 2018 · 0 comments
Open

Child AppDomain code points not resolved #191

ezverev opened this issue Jul 27, 2018 · 0 comments

Comments

@ezverev
Copy link

ezverev commented Jul 27, 2018

I have a test project which I try to debug with Mono.Debugging.Soft:

        public static void Main(string[] args)
        {
            string appName = "ChildAppDomainTest";

            AppDomainSetup setup = new AppDomainSetup();
            setup.ApplicationBase = AppDomain.CurrentDomain.BaseDirectory;
            setup.ApplicationName = appName;

            AppDomain newDomain = AppDomain.CreateDomain(appName, AppDomain.CurrentDomain.Evidence, setup);
            ChildDomainLogic childDomainProxy = (ChildDomainLogic)newDomain.CreateInstanceAndUnwrap(
                typeof(ChildDomainLogic).Assembly.FullName,
                typeof(ChildDomainLogic).FullName,
                true,
                BindingFlags.Default,
                null,
                new object[] { },
                null,
                null);

            DateTime result = childDomainProxy.Test1();
        }

the child domain logic is simple:

    public class ChildDomainLogic : MarshalByRefObject
    {
        public DateTime Test1()
        {
            Debug.WriteLine("ChildDomainLogic.Test1");
            return DateTime.Now;
        }
    }

If I set a breakpoint into the ChildDomainLogic it gets hit but the debugger does not resolve it as user code (shown as external code at the Callstack window) and code stepping does not show the execution location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant