[Solved] Standalone loading script into back
Posted: Wed May 24, 2017 9:59 am
Hello,
I have stack with a substack, which is a personal script library.
The following script is in the main stack:
This code works in development environment, and it also worked with others personal standalone appls. But with my current stack, it doesn't in standalone environment. It crashes on startup at line containing "myFonction" with a "Type: Handler: can't find handler".
It looks like the script of "MyLibStack" has NOT been loaded, though "MyLibStack" appears in the backScripts.
Using LC Community 8.14
Of course, I can put the scripts of "MyLibStack" in the main stack, and remove "MyLibStack", but I would like to understand what is happening.
(sorry in advance, maybe I'll not be able to check this thread for a few days)
EDIT: when the startup process is completed, any call to script in "MyLibStack" substack works.
I have stack with a substack, which is a personal script library.
The following script is in the main stack:
Code: Select all
on preOpenStack
insert the script of stack "MyLibStack" into back
end preOpenStack
on openStack
answer the backScripts // just to be sure script of "MyLibStack" has been loaded
answer myFunction("test") // myFunction() is in the substack "MyLibStack"
end openStack
It looks like the script of "MyLibStack" has NOT been loaded, though "MyLibStack" appears in the backScripts.
Using LC Community 8.14
Of course, I can put the scripts of "MyLibStack" in the main stack, and remove "MyLibStack", but I would like to understand what is happening.
(sorry in advance, maybe I'll not be able to check this thread for a few days)
EDIT: when the startup process is completed, any call to script in "MyLibStack" substack works.