Hi,
Prevent the server from going into a modal state, use the SYS(2335,0) function early in the code, it causes Visual FoxPro to generate an error if any type of UI is attempted in the server code.
Trap error code 2031:"User-interface operation not allowed at this time" and do a restart or whatever you want to do in this case.
>Hi all,
>
>I built a 'job processor' that runs in Unattended Server Mode [ sys(2335) ]. However, when a serious network error occurs it is WINDOWS that generates a message that requires a push on a button. Is there any procedure or (api-)function that can be used to prevent such a windows message?
>
>The job processor has been built to also handle any unexpected shutdown or even any spontaneous restart of the machine.
Regards N Mc Donald