Closing all Zorro processes

Posted By: Zheka

Closing all Zorro processes - 06/02/22 11:59

What would be the correct way to close running Zorro instances from the master (by pressing [Stop])
Code
while  (zStatus(2) or zStatus(3) or zStatus(4) or zStatus(5) ) { 
 if (!wait(300)) { zClose(0); return 1;}				
}
zClose(0) is supposed to close all instances, but this doesn't happen.
Posted By: jcl

Re: Closing all Zorro processes - 06/03/22 06:22

zClose(0) is correct, but must be called from the master process. Child processes can only close themselves.
Posted By: Zheka

Re: Closing all Zorro processes - 06/03/22 11:49

As I wrote, the snippet above is from the master process.
Posted By: jcl

Re: Closing all Zorro processes - 06/03/22 12:49

Then close the processes separately by their Id. We'll check if and when zClose(0) does not close them.
Posted By: Zheka

Re: Closing all Zorro processes - 06/08/22 11:01

Just wanted to check if this was checked.?
Posted By: jcl

Re: Closing all Zorro processes - 06/08/22 14:52

Close them separately. The manual was premature. Zorro 2.49 supports zClose(0), but not Zorro 2.48.
Posted By: Zheka

Re: Closing all Zorro processes - 06/08/22 17:58

This was with Zorro 2.49.3
Posted By: jcl

Re: Closing all Zorro processes - 06/09/22 11:11

Then it's still not implemented, but I have it on my list as ready. I'll inquire.

- Update: I just tested it and it works here. Can you post your whole code?
© 2024 lite-C Forums