Click here to Skip to main content
15,913,610 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
I have created windows service in C#.NET.
When I have installed this in window 7 then it's working there are number of timers inside the service.
After sometime left(an hour or half hour) it will going to user login page then after login it will start the timer again from that position when we logged to the user PC.
But it will not restarted. Because I have logged some value at time starting the service.
I have started service at 11.00 then it will going to the user login page at 13.00 then it will not logged the value after logging. It means, it will paused for sometime.
How to avoid this windows service going to the paused mode?
Posted
Updated 1-Mar-12 2:19am
v2
Comments
Herman<T>.Instance 1-Mar-12 8:23am    
make it multithreaded.
vrushali katkade 1-Mar-12 8:42am    
i not getting your solution can you explain it again. beacause i have used the multithreading in service

1 solution

If you are not using a System.Threading.Timer then try that instead.
 
Share this answer
 
Comments
vrushali katkade 1-Mar-12 9:13am    
i have used the System.Threading.Timer in my service

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900