Hello everyone,
Here is my OnStop method of Windows service application. When click stop, the error message is, "Error: 1067 The process terminated unexpectedly".
I have tested if remove the Join method, the service can stop gracefully. Does it mean Join method is not allowed to be called in OnStop method of a Windows service? Any ideas?
[Code]protected override void OnStop(){ MyWorkerThread.Join(); this.ExitCode = 0;}[/Code]
thanks in advance,George