Thanks both for your answers,
tlhintoq, thats for your answer. I think you have nailed it. Ill make the class Im calling raise an event and set a public boolean property 'finished' to true. Ill only run the thread again if 'finished' = true.
Nice one
					
					
						User Profile
				
					Collapse
				
			
		
	- 
	
	
	
	
Stubbulon5 started a topic How to allow thread to finish before next iteratation/check using a Timer object?in .NETHow to allow thread to finish before next iteratation/check using a Timer object?
Hi there,
Im using a Timer with an interval of 1 min (60000 milliseconds) to start a thread in the Global.cs of my application. Everything works fine until the the thread job takes more than 1 min to complete. When the job takes longer that 1 min, the old (currently running) job never seems to get to completion.
Basically I only want to re-run the thread once its complete but using the Timer so I can potentially leave... 
No activity results to display
							Show More
							
Leave a comment: