System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
蛮怪的,堆栈显示似乎在添加项到dictionary里报的错;
但添加一项,怎么样也报不出"索引不存在"吧?
(最多是添加了重复项,对象不存在之类)
堆栈最后一句是:
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
报错却是:Index was outside the bounds of the array.
不确定上下文呢,这是记录的服务器里的日志;
我的目的就是想根据这段记录找到定位到上下文,那样才能看出问题来。。。
我是说代码,没有代码光报错有什么用
Dictionary内部也是通过数组实现的,而且不是线程安全的,猜测你这可能是多线程操作同一个形成的冲突