title: The Reason of Service Termination
body: <p>I use a service application I created in Delphi. My problem is that it is sometimes terminated by the operating system and I don't know why this happens.</p>
  
  <p>When I go the the system events, I can find a piece of information like this one:</p>
  
  <p><a href="http://www.eventid.net/display.asp?eventid=7034&amp;eventno=1424&amp;source=Service%20Control%20Manager&amp;phase=1" rel="nofollow noreferrer">Event ID: 7034</a>, The [...] service terminated unexpectedly. It has done this [...] time(s).</p>
  
  <p>I know you can't give me an answer why this happens, but could you please give me a clue what to pay attention to to find the reason of that behaviour? For instance what kind of exceptions could make the OS close an application.</p>
  
  <p>Thank you in advance.</p>