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

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

Open
man75319 opened this issue Mar 22, 2021 · 0 comments
Open

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

man75319 opened this issue Mar 22, 2021 · 0 comments

Comments

@man75319
Copy link

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改成了静态属性。

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