Click to See Complete Forum and Search --> : Creating a new Process from a NT service


April 22nd, 1999, 12:58 AM
Hi,
I'm trying developping a NT service whose purpose is to start a new process after a specified time, wait for the process to exit normally & receive the return value in a pipe ... & continue again. It works fine when run in debug mode (i.e, as an exe ) but when registered as a service, it does all except creating the process. Can any one help me in this matter ? It's urgent.

Thanks in advance,
Mrinal

Roger Osborn
April 22nd, 1999, 02:17 AM
You should be able to debug it while it runs as a service. Start a debug version going as a service, start up Visual Studio, go to build\start debug\attach to process... menu .
Then on the dialog click the "show system processes" checkbox and select your service.
then you can break into it and look at the return codes while it's running to spot the problem.