Gamestudio Links
Zorro Links
Newest Posts
New Zorro version 2.30
by Zheka. 08/03/20 15:24
script CurrencyStrength
by jcl. 08/03/20 14:01
Moving Panels together
by Aku_Aku. 08/03/20 12:22
Why gamestudio USE Lite_C
by txesmi. 08/03/20 11:49
Price clusters
by jcl. 08/03/20 10:04
Zorro.exe return codes
by jcl. 08/03/20 09:41
objective - based to DD
by Grat. 08/03/20 05:14
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
8 registered members (aariassanta, deepscreener, exile, AndrewAMD, Jerome8911, Dooley, Zheka, 1 invisible), 469 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Al82, Alibert, jsch, daan, TianYu
18487 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro.exe return codes #481019
08/01/20 16:51
08/01/20 16:51
Joined: Feb 2017
Posts: 1,062
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,062

If a Zorro process is launched from the command line, it would be useful to be able to get return codes, for example, to detect a crash.

If I might make a suggestion: in the script, let the script writer set a global value for return codes, and then whenever the process exits or crashes, it will use that return code regardless.

For example, if a script writer wants to detect child process crashes with return codes, on init, script sets ProcessReturnCode to 1, and during cleanup(), script sets ProcessReturnCode to 0. Therefore, if the child script crashes unexpectedly, the process returns 1, otherwise 0 for success.

Re: Zorro.exe return codes [Re: AndrewAMD] #481038
10 hours ago
10 hours ago
Joined: Jul 2000
Posts: 27,295
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,295
Good idea.

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)

Powered by UBB.threads™ PHP Forum Software 7.7.1