Page 1 of 1
report() stopped working !?
Posted: 07 Apr 2024 20:50
by bossi
i noticed it 2023 08 , didnt bother , disabled it in my workflow, now i would like to utilize it again in my scripts , but any function call results in error ...
report()
echo report(,1)
echo report(,0)
Error: 28 (0x0000001C)
Desc: Out of stack space
Dll: 0
Proc: script_Process: call
Source: XYplorer
XY ver: XYplorer 25.80.0000 - Lifetime License Enterprise
OS: Windows 11 Pro, 64-bit, Version 23H2, Build 22631.3296 (10.0)
Locale: 1049 (ru-RU)
ANSI: 0, ACP: 1251 (ANSI - Cyrillic)
literally the only critical bug i experience....

Re: report() stopped working !?
Posted: 08 Apr 2024 09:45
by admin
Cannot reproduce. Is this happening in a specific folder?
Re: report() stopped working !?
Posted: 10 Apr 2024 21:29
by bossi
i narrowed it down to :
Code: Select all
"_ : loop_script"
echo report(); // <-- executes successfully
$paths = sel_files();
foreach($path, $paths) {
goto "$path"; // it goes to the first folder ...
echo report(); //... and stops here
}
within the foreach loop , it simply does not work
Re: report() stopped working !?
Posted: 10 Apr 2024 22:20
by klownboy
Where did you get
sel_files()?
Try running this:
Code: Select all
//echo report(); // <-- executes successfully
$paths = "<selitems |>";
foreach($path, $paths,"|") {
goto $path; //don't quote $path variable
echo report();
}
Re: report() stopped working !?
Posted: 10 Apr 2024 23:00
by bossi
still the same result...
on a fresh install it works as intended .
seems a problem on my part , too many customizations and yet, very strange that only within a loop it malfunctions

Re: report() stopped working !?
Posted: 10 Apr 2024 23:16
by highend
add a step; above the loop, does it still fail when stepping through the script?
Re: report() stopped working !?
Posted: 11 Apr 2024 01:06
by bossi
thx @ all
to make the my whole function work, i had to :
1. deactivate the CEA before browsing a folder
2. create a sparate .xys file for my function
all boiling down to make report() execute correctly...

Re: report() stopped working !?
Posted: 11 Apr 2024 08:18
by admin
"Out of stack space is usually caused by recursive calls. It's the scripter's responsibility to avoid this.
