Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

timer in windows service- continue running after the service is stopped.

$
0
0

Hi, I have a windows service in which I have used a Timer to run the process on some time interval. 

and In the timer I have used Used Thread for the process. Now On stop event I have aborted the thread but did not closed or dispose the timer. Now I have got a problem that I have stopped the  service. But I am getting Emails from the service on the specified time. Unable to understand that when the service is stopped then from where the code is running. 

Now I want to understand that whether the timer is running in back ground, IF yes then from where Can I see that and if not the How is running my code.

Thanks


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>