A
archana
Hi all
I am having application which is using server based timer that is timer
from namespace system.timer.
I am having windows service which i want to run after every 1 hour and
after every one hour i am sending mail.
In service.cs class i am creating one worker thread and in thread
procedure i am enabling one timer after thread procedure is completed
and in timer's elapsed event i am calling function of sending mail.
But even if i set interval as1 hours my code is sometime running
continuously means sending mail after 1 min only instead of after 1
hour which is increasing my mail box size.
Can some one tell me why thisis happening. Or can't i start timer in
thread procedure at the end of thread procedure.
Am i doing something wrong?
thanks in advance,
I am having application which is using server based timer that is timer
from namespace system.timer.
I am having windows service which i want to run after every 1 hour and
after every one hour i am sending mail.
In service.cs class i am creating one worker thread and in thread
procedure i am enabling one timer after thread procedure is completed
and in timer's elapsed event i am calling function of sending mail.
But even if i set interval as1 hours my code is sometime running
continuously means sending mail after 1 min only instead of after 1
hour which is increasing my mail box size.
Can some one tell me why thisis happening. Or can't i start timer in
thread procedure at the end of thread procedure.
Am i doing something wrong?
thanks in advance,