0
Answer

Beginner Problem for Defining threads

Ask a question
shariq_mid

shariq_mid

20y
1.5k
1
Hello Everybody: I have a problem defining threads. Thread td = new Thread(new ThreadStart(ReadSocket)); public void ReadSocket(System.Net.Sockets.Socket soct) { } The error message I am getting is Method 'SocketServer.Form1.ReadSocket(System.Net.Sockets.Socket)' does not match delegate 'void System.Threading.ThreadStart()' How do I rectify the problem . I have to pass (System.Net.Sockets.Socket soct) in the public void ReadSocket() subroutine and start a new thread. Pls guide. Thanks, Kapil