I tried it in line 41:
Code: Select all
// INIT THE REAL SERVICE HERE AND LET THE MAIN LOOP RUN
But if i start the service, the "Service Startup Dialog" doesn't disappear and the startup timed out after a while with the error 1053.
The same happen if i put the while loop into the int MainApp::OnRun().
I've also removed the SERVICE_INTERACTIVE_PROCESS in the MainApp::Install(void) method, reinstalled the service, without success.
Any idea what i'm doing wrong ?