Gamestudio Links
Zorro Links
Newest Posts
Missing z.ini in Zorro 2.30
by kalmar. 09/28/20 21:15
File & directory paths - the others
by danatrader. 09/28/20 17:00
Sky and Water not working correctly?
by NeoDumont. 09/28/20 11:26
Real Execution problems
by rafaelghd. 09/28/20 10:54
Accessing component equity curve
by Petra. 09/27/20 13:30
Error message for Edit and Result
by DripDrop. 09/26/20 14:50
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
11 registered members (AndrewAMD, Dooley, MatPed, kalmar, BlackJack, Janusz, marr, 3run, alibaba, 1 invisible), 460 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Average, DripDrop, zzy, NewBorn, 3dvg
18518 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,101
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,101
Chicago
jcl,

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
08/03/20 09:41
08/03/20 09:41
Joined: Jul 2000
Posts: 27,347
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,347
Frankfurt
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) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1