>The trouble is, it's running as a process that's started from SQL Agent, so once it's running there seems to be no way to get in touch with it.
You could add a timer which checks every 5 minutes or so for the existance of a file. If the file is there you could set the coverage on. If the file is no longer there, set the coverage off
That's how I get every user out of an application. The timer checks for a folder 'Down'. If it's there I close all forms and quit. If it is there when they start the app up, the app quits
>It happens almost immediately and I have the feeling some dialog is being displayed.
>
>I seem to remember something like this where foxuser.dbf was invalid.
>In that case VFP does not generate an error as it in my opinion should, so there is nothing to catch.
>
>If RESOURCE = OFF in config.fpw, what are the consequences (if any) in a case like this?
None, as far as I know, it only stores window positions and the like
Best set resource OFF in your case
>
>>>Here's the scenario:
>>>
>>>An exe with no GUI occasionally appears to hang.
>>>
>>>There is no error, otherwise the error-handler would kick in, write a message to a log file and quit.
>>>
>>>There is no screen output in the program.
>>>
>>>VFP is not installed.
>>>
>>>Is there a simlpe way to log something like 'Currently executing line x of program y' to a logfile?
>>>
>>>TIA
>>
>>Peter,
>>
>>This could work
>>
>>
>>set escape on
>>on escape ShowMeWhereIAm(lineno(1))
>>
>>function ShowMeWhereIAm(lineNumber)
>> local lvl
>> lvl = program(-1)-2
>> acti screen
>> ?program(lvl), 'line ', lineNumber
>> *on escape
>>endfunc
>>
>>
>>or
>>
>>
>>on escape set coverage to \tmp\log.log
>>
Gregory