System.Timers.timer stops firing after extended time (windows service)

J

jajalc

Hi all,

WE have a windows service using .net and which uses a
System.Timers.Timer..all the of code works fine..... but after a
extended period of time the timer just stops firing the elasped event.

the elasped event is fired every 2 sec and the code which is in the
elasped event is multithreaded.

This only happens if the service runs for a extended peroid of time..

Does anyone else have the same problem?

There is nowhere in the code that the timer is set to disabled or the
time should be stopped by some reason.

After googling it for a while i really didnt get the right answer..
..people suggest to switch to system.threading.timer but i just want to
make sure that there is a problem withe the System.Timers.Timer and
confirm it with the experts

here is a link to someone who has the same problem

http://discuss.develop.com/archives/wa.exe?A2=ind0306D&L=DOTNET-CLR&P=R1007&D=0&I=-3
http://weblogs.asp.net/sibrahim/archive/2004/01/13/58429.aspx

Can any one plz help

Cheers
Chintan
 
T

Tasos Vogiatzoglou

Hello,

have you checked the possibility of resource exchaustion (maybe a
memory leak, ThreadPool filleds or something?)

Regards,
Tasos
 
J

jajalc

no.. the exe didnt consume much of any resources and all the threads
and the memory was not blown up. There was no log in the eventlog as
well saying that the exe (windows service) has terminated. i also do
have a global error handling which would have trapped the error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top