为了账号安全,请及时绑定邮箱和手机立即绑定

调用List<T>的Clear()方法报System.IndexOutOfRangeException,具体如下

调用List<T>的Clear()方法报System.IndexOutOfRangeException,具体如下

杨魅力 2018-12-06 23:22:37
at System.Array.Clear(System.Array, Int32, Int32)   at System.Collections.Generic.List`1[[System.Byte, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Clear()   at Kael.SocketIOCP.Share.Share.BufferManager.Init()   at Kael.SocketIOCP.Server.SocketServerSuper.BeginReceive(System.Net.Sockets.SocketAsyncEventArgs)   at Kael.SocketIOCP.Server.SocketServerSuper.Asyn_Completed(System.Object, System.Net.Sockets.SocketAsyncEventArgs)   at System.Net.Sockets.SocketAsyncEventArgs.OnCompleted(System.Net.Sockets.SocketAsyncEventArgs)   at System.Net.Sockets.SocketAsyncEventArgs.ExecutionCallback(System.Object)   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)   at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSuccess(System.Net.Sockets.SocketError, Int32, System.Net.Sockets.SocketFlags)   at System.Net.Sockets.SocketAsyncEventArgs.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)   求解决方法
查看完整描述

2 回答

?
守着一只汪

TA贡献1872条经验 获得超3个赞

额,那么有缘,上午我发个问题,过了一会你的问题出现在我的问题上方,下午又来了,我来捧个场
查看完整回答
反对 回复 2018-12-09
  • 2 回答
  • 0 关注
  • 507 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信