I am working on building a new standalone using LC 9.5.1. I create the standalone using the
glxApplicationProperties plugin.
Then I package the application with the glxApplicationPackager stack.
I have run up an an issue where the packaged application won't function properly because the executionContexts will return a different value in the packaged application than it does in the IDE or when running from the standalone, which is generated by the glxApplicationProperties plugin, that is saved in the application folder at the same level as the launcher.rev folder .
Stack hierarchy in the application folder is
mainstack.livecode
- myLibSubstack
- myAppSetCredentials
- sends callback "myAppSetCredentialsCallback to object getCaller()
- getCaller()
-uses executionContexts to return long id of caller.
private function _getCaller
get item 1 to -3 of line -3 of the executionContexts
if there is not an it then
delete item -1 of it
end if
return it
end _getCaller
Components
login.rev
- card 1
- setCredentials
- calls myAppSetCredentials
- myAppSetCredentialsCallback
- card 2
The problem is that the objectID returned by _getCaller() in the packaged application is that of the stack login.rev and not of card 1 of login.rev
In the IDE and the standalone the objectID returned by _getCaller() is that of card 1 of login.rev as it should be.
This was not a problem when I was using LC 6.7.3.
Any suggestions as to why this is happening and how to resolve it?
Thanks.
Martin Koob