I know there a lot of questions about this, but neither one of them worked with me. So the problem is that I have a thread that is reading some MODBUS devices and I want to be able to start/stop the reading. When connect is chosen I start the thread and when disconnect is chosen I abort the thread. When I start the aborted thread I receive the following excepton:
System.Threading.ThreadStateException: Thread has already been started. at (wrapper managed-to-native) System.Threading.Thread:Thread_internal (System.Threading.Thread,System.MulticastDelegate) at System.Threading.Thread.Start () [0x00000] in :0 at Vyshka.MainClass.Main (System.String[] args) [0x00096] in /home/Vyshka/Main.cs:53