public void Run() { LogClass.LogWrite("RawDataReceiveClass Run!" + Sock.Handle.ToString()); int rSize; int cnt = 0; ptr = (IntPtr)buffer[0]; try { StreamIOThread.Suspend(); } catch (Exception e) { Console.WriteLine(e.HelpLink); } StreamIOThread.Resume(); while ((rSize = Sock.Receive(buffer)) > 0) { LogClass.LogWrite(Sock.Handle.ToString() + " " + (cnt++) + " " + rSize.ToString()); } return; }