Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (ozgur, howardR, AndrewAMD, exile, Ayumi), 725 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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