   [.net] Cannot?  What do you mean?
  Anyone aware of this C# problem? Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized.
  Context is everything. I assume you are getting this when in the debugger. As such, it is as the error states, which is pretty clear.[google]   ;  I see.  And the solution is?  Is it random?  Does it make sense when it crashes for no reason and the "Debugger" complaining about an index out of range where there's no such index variable name, and indexing is for sure within the range?;  Is your code optimized?  Make sure the optimize code check box is unchecked in your project properties, or that you are using the debug configuration and try it again.The other time I can think of when this can happen is if the code is stopped inside a call to a native function.  If that's the case, do "Step out" once to get the current instruction back inside managed code.   