Console app fails to start as a service with error 1053

Hi there,

My console app runs fine from windows explorer or from the command line.
I created a service but it fails to start giving error 1053 (service did not respond).
Even if it fails it appears in the task manager.
After failing the service keeps a “starting” status until I kill the process.

App info:

  • dev on OSX with Xojo 2014r2.1
  • tested on a Win7 x64 parallel box
  • app connect to 2 databases (sqlite using cubeSQL and MSSQL using MBS plugin) and writes logs to a TextOutputStream
  • app (should) run continuously, uses a timer to start a processing cycle every 60 seconds

Rem:

  • when the app is started from the command line or the explorer it uses +/- 6Mb memory and writes immediately to the logfile
  • when the service fails to start, I can see it in the task manager but it uses > 20Mb memory and does not write to the file
  • I tried running the service with a “local system account” and with a specific administrator account

Any hint or idea is welcome !

Thanks,

Olivier

is the Super of the App class ConsoleApplication or ServiceApplication?

Hi Greg,

I’m not at the office so I can’t check right now.
But I didn’t know there was another super., so it’s has the default super for console app…
I’ll check later but this could really be that simple !

I’ll let you know.

Thanks !

Super was Console App, changed to Service Application.
Runs fine now.

Many thanks.

Olivier