tdignan87
Well-known member
- Joined
- Jul 8, 2019
- Messages
- 95
- Programming Experience
- Beginner
Hi
I have a service application but i have the timer1.start(); on the ONStart method although it's not running my timer.
If i put a streamwriter file logging into the OnStart to check the OnStart method is okay then it's logging file data to the log ok.
Any ideas?
Timer is enabled
Inside timer1_tick i have the SMTP and DB query which work ok when run independently.
Cheers
I have a service application but i have the timer1.start(); on the ONStart method although it's not running my timer.
If i put a streamwriter file logging into the OnStart to check the OnStart method is okay then it's logging file data to the log ok.
Any ideas?
Timer is enabled
Inside timer1_tick i have the SMTP and DB query which work ok when run independently.
Cheers
C#:
protected override void OnStart(string[] args)
{
timer1.Start();
}