使用socket的receive方法怎么会产生indexoutofrangeexception?
各位大虾,我有一个问题,我使用socket的receive方法,如下:Dim bytes As Int32
Dim RecvBytes(1024) As Byte
bytes = mSocket.Receive(RecvBytes, RecvBytes.Length, SocketFlags.None)
注:msocket为socket类。
有时候在msocket.receive方法是会发生indexoutofrangeexception,这是怎么回事
--------------------编程问答--------------------
补充:.NET技术 , VB.NET