本文主要是介绍Operations that change non-concurrent collections must have exclusive access.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
调用后台API提示500错误,接口返回信息如下。
原因是:
Dictionary被多个线程同时所修改导致的所措。
解决办法:
把程序的写法改了下。
这篇关于Operations that change non-concurrent collections must have exclusive access.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!