【发布时间】:2014-01-26 05:16:43
【问题描述】:
我在尝试清除列表时遇到以下异常。
System.IndexOutOfRangeException occurred
HResult=-2146233080
Message=Index was outside the bounds of the array.
Source=mscorlib
StackTrace:
at System.Array.Clear(Array array, Int32 index, Int32 length)
at System.Collections.Generic.List`1.Clear()
at SystemFilterFactory.ResetSystemFilters() in d:\Source\SystemFilterFactory.cs:line 57
InnerException:
没有显示真正的异常,该列表的基础是给出以下异常
目标数组不够长。检查 destIndex 和长度,以及数组的下限。
【问题讨论】:
标签: c# multithreading list exception