Is it possible to run a hidden console application from a Windows service?

Posted by norgepaul on Stack Overflow See other posts from Stack Overflow or by norgepaul
Published on 2010-05-31T13:02:02Z Indexed on 2010/05/31 14:13 UTC
Read the original article Hit count: 166

I've written a server in Delphi 2010 that needs to launch a console application every now and again to back up a database. The console application can send log information to the console window, but it is not required.

This works fine when running as an application, but when run as a service I get an access violation when launching the console application. This is the case even if I launch it hidden (SW_HIDE).

Is it possible to launch a hidden console application from a Windows service? The solution needs to work on XP, Vista and Windows 7.

© Stack Overflow or respective owner

Related posts about delphi

Related posts about windows-7