Exemplo n.º 1
0
        static CallSiteCache()
        {
            try
            {
                _stackFrameFast = CreateInternalStackFrameInfoMethod();
            }
            catch (Exception exc)
            {
                Debug.WriteLine("Could not create fast stack info method, things are going to get slooooow. Exception: " + exc);

                // If we end up here it's bad, the .NET framework authors has changed the private implementation that
                // we rely on (which is entirely within their rights to do).
                if (Debugger.IsAttached)
                    Debugger.Break();
            }
        }
Exemplo n.º 2
0
        static CallSiteCache()
        {
            try
            {
                _stackFrameFast = CreateInternalStackFrameInfoMethod();
            }
            catch (Exception exc)
            {
                Debug.WriteLine("Could not create fast stack info method, things are going to get slooooow. Exception: " + exc);

                // If we end up here it's bad, the .NET framework authors has changed the private implementation that
                // we rely on (which is entirely within their rights to do).
                if (Debugger.IsAttached)
                {
                    Debugger.Break();
                }
            }
        }