.NET Windows Service with timer stops responding

前端 未结 7 950
猫巷女王i
猫巷女王i 2020-11-30 05:17

I have a windows service written in c#. It has a timer inside, which fires some functions on a regular basis. So the skeleton of my service:

public partial cl         


        
7条回答
  •  無奈伤痛
    2020-11-30 05:36

    I have made exactly the same as you in a few projects but have not had the problem.

    Do you have code in the tickTac_Elapsed that can be causing this? Like a loop that never ends or some error that stops the timer, using threads and waiting for ending of those and so on?

提交回复
热议问题