Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 600 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Closing all Zorro processes #486033
06/02/22 11:59
06/02/22 11:59
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
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.

Re: Closing all Zorro processes [Re: Zheka] #486037
06/03/22 06:22
06/03/22 06:22
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
zClose(0) is correct, but must be called from the master process. Child processes can only close themselves.

Re: Closing all Zorro processes [Re: Zheka] #486040
06/03/22 11:49
06/03/22 11:49
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
As I wrote, the snippet above is from the master process.

Re: Closing all Zorro processes [Re: Zheka] #486044
06/03/22 12:49
06/03/22 12:49
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Then close the processes separately by their Id. We'll check if and when zClose(0) does not close them.

Re: Closing all Zorro processes [Re: Zheka] #486080
06/08/22 11:01
06/08/22 11:01
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
Just wanted to check if this was checked.?

Re: Closing all Zorro processes [Re: Zheka] #486091
06/08/22 14:52
06/08/22 14:52
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Close them separately. The manual was premature. Zorro 2.49 supports zClose(0), but not Zorro 2.48.

Re: Closing all Zorro processes [Re: Zheka] #486093
06/08/22 17:58
06/08/22 17:58
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
This was with Zorro 2.49.3

Re: Closing all Zorro processes [Re: Zheka] #486112
06/09/22 11:11
06/09/22 11:11
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
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?

Last edited by jcl; 06/09/22 11:11.

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1