NisHera
10 years agoValued Contributor
Waiting for application shut down
My application auto should down in certain operations (which is normal) while shutting down it had to process many background jobs. So I need to wait till it’s down to restart and go on. So I wrote following.
for(j=0;j<101;j++){ Sys.WaitProcess("Application").Exists? Delay(4000,'.............Waiting for close down'):j=100; }
It gives me error Application.exe process crashed, it is not crash but intentional shut down.
any idea on handling it better way?
Hi Nishera,
You forgot to specify the Timeout parameter in the WaitProcess method:
Sys.WaitProcess("Application",2000).Exists...