ThreadStart barCodeThreadStart=new ThreadStart (clientSocketBarCode ConnectStart);
BarCodeThread=new Thread (barCodeThreadStart);
BarCodeThread. Start ();
MessageBox. Show (barCodeThread. ThreadState. ToString ());//output thread state here is: Running
MessageBox. Show (barCodeThread. ThreadState. ToString ());//while here becomes: Stopped
CodePudding user response:
Isn't it normal execution has completed?CodePudding user response:
ClientSocketBarCode. ConnectStartYou have to code?? If you own this ConnectStart, code wrote a this
Var a=1;
So, he is not a word was performed, performed, you still no thread closed??