GLX Framework based app and El Capitan Mac OS X 10.11.6

23 views
Skip to first unread message

Martin Koob

unread,
Sep 27, 2016, 8:10:33 AM9/27/16
to GLX Application Framework
I have a GLX Framework based application and am having problems getting it to launch in Mac OS X 10.11.6 El Capitan.  It works fine on Yosemite. I am using LC 6.7.3.

The problem is that when the main stack opens there are handlers in it that the first scripts that run can't find.   It seems that El Capitan tries to start running scripts before all the stack is loaded.

I have tried to workaround this by adding wait with messages for a couple seconds for the stack to fully load so all the handlers are available.  

The way GLX works is a launcher stack first opens and then launches subsequent stacks.   I have a login stack which then launches my main application stack which has the handlers that other handlers on that stack say it can't find.
  
Another way I tried to reso'vle this is to force the loading of the main application stack while the login stack is open by the method of using "put there is a stack [path/to?tack/file.livecode? described by Trevor here.
That does not work since it returns false I presume because the stack is no longer present in the file structure as it is packaged in the standalone.   

Is there another way to ensure that the stack is in memory before trying to open it?

Has anyone else seen this behaviour in El Capitan?   Any ideas?

Thanks

Martin

I also posted this in the LiveCode Forums.

Martin Koob

unread,
Sep 28, 2016, 3:52:08 PM9/28/16
to GLX Application Framework
Hi 

I found this was not a bug related to Mac OS El Capitan.  I typed up the following explanation of what actually went wrong  and posted a bug report.  See more below.

Martin

Hi Trevor and James.
I found this was not an El Capitan issue. Just a silly mistake on my part but one made sillier because the script editor did not notice its silliness.
The handler where the error occurred was supposed to create a .plist file for the app if there was none in the /Users/Library/Preferences folder.   I am developing using Yosemite and I already had the .plist file in my preferences files on my Mac so the error was never triggered while developing and testing there.   I was testing the app on El Capitan by loading it on other Macs running El Capitan and since it did not have the .plist file (as the App had not been installed there yet) it would encounter the error all the time.  That was what made me think it was a El Capitan vs Yosemite issue.
The error that was causing the problems was the result of a put statement for putting a value into a variable. I forgot to put 'into' into the statement i.e. 
[code]put getAnyNumber("100")  tNumber [/code]
I did not catch the error when editing in the IDE since the script editor would compile the code in spite of the syntax error.
I have posted that as a bug  http://quality.livecode.com/show_bug.cgi?id=18511

 

Martin
Thanks for your suggestions.
Reply all
Reply to author
Forward
0 new messages