Visual Studio during Debugging: The function evaluation requires all threads to run

From the msdn forum:

This isn’t an error in and of itself, but more of a feature of your debugger.

Some properties require code to be executed in order for the property to be read, but if this requires cross-thread interaction, then other threads may have to run as well. The debugger doesn’t do this automatically, but certainly can, with your permission.

Just click the little evaluate icon and it will run your code and evaluate the property.

enter image description here

For further details on this behaviour check this excelent article

Leave a Comment