Skip to content

AppDomain.GetCurrentStackTrace在ilr工程调用有异常 #11

@man75319

Description

@man75319
class TestTraceStack
    {
        public static void RunTest()
        {
            var s = HelloWorld.appdomain.GetCurrentStackTrace();//注释掉就不会有问题
            UnityEngine.GameObject go = new UnityEngine.GameObject();
            UnityEngine.Debug.Log(go.name);//报错,提示go是一个null
        }
    }

这个测试样例,为了取到appdomain,这里把HelloWorld.appdomain改成了静态属性。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions