title: How to stop a service within the OnStart method?
body: <p>I'm writing a windows service in .net 2.0.</p>
  
  <p>What should I do within the <code>OnStart()</code> method if for some reason I don't want my service to start? Can I simply call the <code>Stop()</code> method of the base class (<code>ServiceBase</code>)? I've tried that and am getting some funny memory access exceptions. Is it required to start a separate thread to call the <code>Stop()</code> method?</p>