Windows Service suddenly doing nothing
        Posted  
        
            by TB
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by TB
        
        
        
        Published on 2009-11-24T12:09:47Z
        Indexed on 
            2010/03/26
            15:13 UTC
        
        
        Read the original article
        Hit count: 311
        
windows-services
|multithreading
Hi, My windows service is using a Thread (not a timer) which is always looping and sleeps for 1 second every loop using : evet.WaitOne(interval);
When I start the service it works fine and I can see in the task manager that it is running, consuming and releasing memory, consuming processor ... etc that is all normal, but after a while (random amount of time) the service simply stops!! it is still there in the task manager but it is not consuming any processor work now and its consumption to the memory is not changing. it simply (died but still there in the task manager like a Zombie).
I know that many exceptions might have happened during running the service (it is really doing many things) but all those exceptions are handled in Try catch blocks, so why is my "always looping" thread stops ??? This thread also logs every time he loops, when he is freezig in this way he is not logging anything (of course)
© Stack Overflow or respective owner