LIST<> AddRange throwing ArgumentException

后端 未结 2 1617
伪装坚强ぢ
伪装坚强ぢ 2021-02-14 18:33

I have a particular method that is occasionally crashing with an ArgumentException:

Destination array was not long enough. Check destIndex and length, and the ar         


        
2条回答
  •  自闭症患者
    2021-02-14 18:52

    Are you trying to update the same list from multiple threads? That could cause problems... List isn't safe for multiple writers.

提交回复
热议问题