OK, I found it... It is phd.prg which is part of phdbase the full text indexer. At the top of the file it mentions the code does not get run but needs to be compiled into the prg to avoid some errors.
I added a messagebox inside it at the top to see if it was being executed. The messagebox only appears if started as a service, and NOT in dev mode or as an .exe in the ide.
Here is the last few lines from the coverage log
0.000007,,frmsyncer.error,33,c:\stan-lyn\syncdri\forms\syncer.sct,6
,,syncexport,125,syncexport.fxp,5
,,frmsyncer.error,3,c:\stan-lyn\syncdri\forms\syncer.sct,7
,,frmsyncer.error,4,c:\stan-lyn\syncdri\forms\syncer.sct,7
,,frmsyncer.error,18,c:\stan-lyn\syncdri\forms\syncer.sct,7
0.000009,,frmsyncer.error,32,c:\stan-lyn\syncdri\forms\syncer.sct,7
0.000007,,frmsyncer.error,33,c:\stan-lyn\syncdri\forms\syncer.sct,7
,,phd,9,phd.fxp,6
and here is the top of the phd.prg
*
* Include this code in your project to avoid the "feature not available"
* error message when a PhDbase III command is issued.
*
* Note that the code need not be executed -- just compile it in with the app.
*
if .F.
MESSAGEBOX('Inside phd')
erase dummy
delete tag dummy of dummy
wait window nowait "dummy"
wait clear
index on .T. tag dummy unique
use dummy in 1 alias dummy again exclusive noupdate
use ? <--------- This was generating the select table dialog...
set index to dummy order dummy
So, what would "run as a service" be doing different from any other run type?
Stanley