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

后端 未结 5 2014
轻奢々
轻奢々 2020-12-01 13:54

I\'m getting suddenly a strange error while debugging. Up to now the variable in the watch windows has been shown correctly. Now I am getting always the error message in the

5条回答
  •  没有蜡笔的小新
    2020-12-01 14:20

    I use the next workaround to pass:

    var OtherThreadField = "";
    Invoke(new MethodInvoker(delegate
                        {
                            OtherThreadField = ExecuteNeededMEthod();
                        }));
    

    Now i have a value for OtherThreadField.

提交回复
热议问题