Using TcpListener.AcceptSocket(); in a separate thread causes the thread to block?
问题 I have tried to work around this as well as debug but I'm at a loose end here :( is there any alternative to using this to check for a client connection? This code works fine in a console application so i am guessing the thread is being blocked, although it may be something else i can't see? public partial class Form1 : Form { Socket s; Declatation of socket. private void startButton_Click(object sender, EventArgs e) { checkTimer.Enabled = true; if (bw.IsBusy != true) { bw.RunWorkerAsync(); }