Out of memory exception - Windows service stop

Posted by user171523 on Stack Overflow See other posts from Stack Overflow or by user171523
Published on 2010-05-27T15:53:32Z Indexed on 2010/05/29 3:12 UTC
Read the original article Hit count: 299

I have a timer within my Windows service which is built using C# 2.0. We are in the process of designing the Exception handling. Since it is Timer runs on its own thread we would like to handle the out of memory exception. When that occurs we would like to stop the service. How can we gently stop the service when that happens on the different thread ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about outofmemoryexception