in that example im assuming that the thread had been started once allready. what the program is doing is reading a log file and checking if the last line is = to a string that i set. if it is it will set "a" to true and start the thread "thread1" if it isnt running yet. the log is changing all the time so the "thread1" thread should run untill another line in the log is read that is = to another string i set and set a to false. but is the isalive is what you use to check if the thread is running or not then you answered my question.
would this be the same as isalive?
VB Code:
If thread1.ThreadState = ThreadState.Running = False Then dim thread1 as new system.threading.thread(addressof mythread) thread1.start end if




Reply With Quote