C
Ciaran
Hi All,
I have created a Windows Service. In the event of an Exception
occuring I would like to notify Windows to restart the service
as shown below:
<snip>
protected override void OnStart(string[] args)
{
ThreadStart starter = new ThreadStart(this.StartListening);
Thread threadWorker = new Thread(starter);
threadWorker.Start();
}
public void StartListening()
{
try
{
...
}
catch (Exception)
{}
}
<snip>
I'm having no joy with this...any ideas are appreciated )
I have created a Windows Service. In the event of an Exception
occuring I would like to notify Windows to restart the service
as shown below:
<snip>
protected override void OnStart(string[] args)
{
ThreadStart starter = new ThreadStart(this.StartListening);
Thread threadWorker = new Thread(starter);
threadWorker.Start();
}
public void StartListening()
{
try
{
...
}
catch (Exception)
{}
}
<snip>
I'm having no joy with this...any ideas are appreciated )