[WD23] Creating a Service - Part 2 October 19, 2018 11:59AM |
Registered: 5 years ago Posts: 234 |
Re: [WD23] Creating a Service - Part 2 October 19, 2018 01:24PM |
Admin Registered: 54 years ago Posts: 280 |
Re: [WD23] Creating a Service - Part 2 October 19, 2018 01:30PM |
Registered: 5 years ago Posts: 297 |
Re: [WD23] Creating a Service - Part 2 October 19, 2018 01:43PM |
Registered: 5 years ago Posts: 234 |
Stefan Kern
Re: [WD23] Creating a Service - Part 2 October 19, 2018 01:46PM |
Re: [WD23] Creating a Service - Part 2 October 19, 2018 01:50PM |
Registered: 5 years ago Posts: 192 |
WHEN EXCEPTION IN // Run the service YourCode() // Pause during 10 seconds ServiceWait(1000) DO // In case of exception, adds an error into the log of events WriteAscii( fCurrentDir(fExeDir()) , "error.log", ExceptionInfo) ServiceWriteEventLog(ExceptionInfo, elError) // Stops the service //EndService(esFailure) END
Re: [WD23] Creating a Service - Part 2 October 19, 2018 01:56PM |
Registered: 5 years ago Posts: 234 |
Re: [WD23] Creating a Service - Part 2 October 19, 2018 02:01PM |
Registered: 5 years ago Posts: 234 |