Definition of "recursive script"

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zakhar
Posts: 174
Joined: 08 Sep 2010 21:13

Definition of "recursive script"

Post by zakhar »

Hello, Dear XYplorer Community!
#
On XYplorer v. 27.20.0700 (but I think the version does no matter),
I often receive a dialog window "The current script appears to be recursive. The stack size is [Nr.] .".
Situation: Two or more scripts build a chain, where the scripts call each other and must be repeated till the time comes to terminate them.
I click "Continue" or "Options / Continue Script without Stepping" and XYplorer continues till it is enougth,
the next script in the chain executes, time passes and the mentioned dialog window appears before loading the next called script again.
#
The setting Menu[Scripting / Step mode] is always turned "off".
May be, this dialog window tends to appear, if the [load "","";]-command is placed in the "if(){ }"-structure.
#
So the question is what is the definition of the script recursivity?
I did not found the answer to my question in the help file - if there is one there, please point me.

Edit 09.12.2025, 17:55:
And how can I turn off this dialog windows?

admin
Site Admin
Posts: 65185
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Definition of "recursive script"

Post by admin »

You choose:

Code: Select all

setting "allowrecursion", 1; //turn it off for the current script

Code: Select all

settingp "allowrecursion", 1; //turn it off globally and permanently

zakhar
Posts: 174
Joined: 08 Sep 2010 21:13

Re: Definition of "recursive script"

Post by zakhar »

admin wrote: 09 Dec 2025 18:41 You choose:
Thank you!
I choose

Code: Select all

setting "allowrecursion", 1;
.

Post Reply