Page 1 of 1

Definition of "recursive script"

Posted: 09 Dec 2025 15:24
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?

Re: Definition of "recursive script"

Posted: 09 Dec 2025 18:41
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

Re: Definition of "recursive script"

Posted: 10 Dec 2025 11:36
by zakhar
admin wrote: 09 Dec 2025 18:41 You choose:
Thank you!
I choose

Code: Select all

setting "allowrecursion", 1;
.