Hey Ray,
Your timer does not work because you have declared your Timer variable (tmrThreadingTimer) as a local variable inside the OnStart method. This "overrides" the declaration of tmrThreadingTimer as a membervariable. You need to change the following line
Timer tmrThreadingTimer = new Timer(tcallback, null, 0, 10 * 1000) ;
to
tmrThreadingTimer = new Timer(tcallback, null, 0, 10 * 1000) ;
I think this will solve your problem.
Regards, Jakob.
> Hi,
>
[quoted text clipped - 52 lines]
> }
> }
ray - 05 Aug 2004 03:24 GMT
Thanks Jakob. It works
> Hey Ray,
>
> Your timer does not work because you have declared your Timer variable (tmrThreadingTimer) as a local variable inside the OnStart method. This
"overrides" the declaration of tmrThreadingTimer as a membervariable. You
need to change the following line
> Timer tmrThreadingTimer = new Timer(tcallback, null, 0, 10 * 1000) ;
>
[quoted text clipped - 62 lines]
> > }
> > }