未处理 System.NullReferenceException
Message=未将对象引用设置到对象的实例。
Source=Server
StackTrace:
在 Server.Form1.aa() 位置 D:\My Documents\Visual Studio 2010\Projects\S_kyo_idiot\Server\Form1.cs:行号 45
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
InnerException:
C[C_Num] = s.Accept();
C[C_Num].BeginReceive(MsgBuffer, 0, MsgBuffer.Length, SocketFlags.None,
new AsyncCallback(Rcallback),C[C_Num]);
accept 成功了
然后执行下一段代码就出错
Server端进程关闭
大家帮忙看看啊
什么错误怎么解决啊~~~