I have recently taken over a legacy windows service and it has been writing the following event in the system event log:
Event ID: 7034
Description: The MyService service terminated unexpectedly. It has done this X time(s).
I was looking over source code and found the following code pattern in the service class library: (It has been simplified to protect the innocent..)
public static void StartService()
{
//do some stuff...
ManageCycle();
}
public static void ManageCycle()
{
//do some stuff
ManageCycle();
}
What is this coding patten called and could it possibly cause the windows service to shutdown (i.e. memory leak)?