Page 1 of 1
With beta v24.30.0113 missing icons and calls to undefined functions
Posted: 22 Apr 2023 12:40
by klownboy
Hi Don , with this last beta, v24.30.0113, when I run some menu type scripts, I randomly get no icons on menus other times they're displayed (50% of the time). I'm also getting numerous errors, "calls to undefined functions" in scripts like FluxTorpedoe's, "SessionManager". I'll try to provide more information when I get more time. Thanks.
Re: With beta v24.30.0113 missing icons and calls to undefined functions
Posted: 22 Apr 2023 13:34
by admin
Must be the new speed booster. But I don't have any problems here yet.
Re: With beta v24.30.0113 missing icons and calls to undefined functions
Posted: 22 Apr 2023 14:47
by FluxTorpedoe
Sorry I missed this post…
The function error can be reproduced even with a very small script like the one I posted here (just as-is, no need to add content):
https://www.xyplorer.com/xyfc/viewtopic.php?p=210012#p210012
Re: With beta v24.30.0113 missing icons and calls to undefined functions
Posted: 22 Apr 2023 15:32
by admin
I'll upload a new beta soon. Ironically the fix makes it again a little faster.

(Though this time unnoticeable.)
Re: With beta v24.30.0113 missing icons and calls to undefined functions
Posted: 22 Apr 2023 16:58
by FluxTorpedoe
Hi, thanks for the quick update.
Tried with v24.30.0114, and same behavior:
— On first run, function works
— On subsequent runs: “not a valid script command”
— If another script is loaded, it “resets” and works again once
• Simple script to replicate:
Code: Select all
"Function Test"
fun();
function fun() {
msg 1;
}
Re: With beta v24.30.0113 missing icons and calls to undefined functions
Posted: 22 Apr 2023 17:11
by Horst
I have reported problems with this Speed booster in another thread.
I think such a change should be first tested in a closed beta by a small number of real script writers.
Specialy as a script speed boost will only be seen by a small number of scripts
running on a high amount of data.
Re: With beta v24.30.0113 missing icons and calls to undefined functions
Posted: 22 Apr 2023 17:37
by admin
FluxTorpedoe wrote: ↑22 Apr 2023 16:58
Hi, thanks for the quick update.
Tried with v24.30.0114, and same behavior:
— On first run, function works
— On subsequent runs: “not a valid script command”
— If another script is loaded, it “resets” and works again once
• Simple script to replicate:
Code: Select all
"Function Test"
fun();
function fun() {
msg 1;
}
Cannot reproduce any issues.

How exactly do you call this script?
Re: With beta v24.30.0113 missing icons and calls to undefined functions
Posted: 22 Apr 2023 17:54
by FluxTorpedoe
— v24.30.0114 unpacked in “D:\Temp\XYplorer” (nothing else changed)
— Script "Test.xys" in <xyscript>
— In Address bar: ::load "Test.xys" (same if added to UDC)
> First run > OK: Message “1” displayed
> Next run > “'fun' is not a valid script command.”
> Close and reopen XYplorer
> First run > OK, etc.
Re: With beta v24.30.0113 missing icons and calls to undefined functions
Posted: 22 Apr 2023 18:21
by klownboy
I'm getting similar behavior with v24.30.0114 as well. With a CTB that loads a script with
load "<xyscripts>\RecentFolders&Favs.xys", "_loadrecent"; load "<xyscripts>\RecentFolders&Favs.xys";. It runs fine on first run but not on subsequent runs unless another script is run first. As you can see, it runs a script label first and then runs the main script. I'll try to provide a simplified example if I can.
Edit: It's with this script that I initially saw the issue in the first post (i.e., the menu icons load on the first run but are not there on subsequent runs unless another script is run first).
Re: With beta v24.30.0113 missing icons and calls to undefined functions
Posted: 22 Apr 2023 18:35
by klownboy
With beta v24.30.0115, both issues reported on the first post have been obliterated.
