What does “Cannot evaluate expression because the code of the current method is optimized.” mean?

后端 未结 15 1489
北荒
北荒 2020-12-08 09:24

I wrote some code with a lot of recursion, that takes quite a bit of time to complete. Whenever I \"pause\" the run to look at what\'s going on I get:

<
15条回答
  •  广开言路
    2020-12-08 09:51

    Friend of a friend from Microsoft sent this: http://blogs.msdn.com/rmbyers/archive/2008/08/16/Func_2D00_eval-can-fail-while-stopped-in-a-non_2D00_optimized-managed-method-that-pushes-more-than-256-argument-bytes-.aspx

    The most likely problem is that your call stack is getting optimized because your method signature is too large.

提交回复
热议问题