satheesh babu

satheesh babu

  • NA
  • 128
  • 308.6k

Windows service is not working properly after installation

Aug 21 2015 12:03 AM
Hi all,
 
I have created a Windows service with a timer. inside that timer event I wrote code like below.
1. Disable the timer
2. Fetch the records with the status False
3. After getting the records processing the business logic.
4. Update the status to True
5. Enable the timer.
 
This windows service is working proper after installation and starting that service. But after few hours (10 hours) that service is not getting the records with False status and I can see the status of that service is "Running".
 
If I restart the service then it will process all the False status records.
 
Could you please help/guide me to fix this issue.
 
Thanks
Satheesh

Answers (1)