T
Thirsty Traveler
I am getting a compile error ("No overload for 'Timer_Tick' matches delegate
'System.Threading.TimerCallback'") on the following code and can't figure
out why. Does anyone have any ideas?
public partial class CrystalService : ServiceBase
{
public CrystalService()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
TimerCallback tcb = new TimerCallback(this.Timer_Tick);
Timer timer = new Timer(tcb);
}
protected override void OnStop()
{
}
public void Timer_Tick()
{
}
}
'System.Threading.TimerCallback'") on the following code and can't figure
out why. Does anyone have any ideas?
public partial class CrystalService : ServiceBase
{
public CrystalService()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
TimerCallback tcb = new TimerCallback(this.Timer_Tick);
Timer timer = new Timer(tcb);
}
protected override void OnStop()
{
}
public void Timer_Tick()
{
}
}