GLX Application Framework based app in LC 9.0.5 - preferences.bundle external not loading

Collaborate on tools, libraries, and applications beyond the IDE

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 237
Joined: Sun May 27, 2007 8:19 pm

GLX Application Framework based app in LC 9.0.5 - preferences.bundle external not loading

Post by Martin Koob » Fri May 24, 2019 11:27 am

Hi.

I posted this in the google group GLX application Framework https://groups.google.com/forum/#!topic ... wJ1StN7ok4
but I am not sure if this group is active so I am post here and in LiveCode Forums.

I have an GLX framework based application that runs in LC7 6.7.3 that I am trying to get it working in LC 9.0.5.

I run into a problem immediately when I launch it. I get an error dialog. "An error occurred while loading the application preferences: unable to load all externals (preferences library not found)"

When the Application starts up it runs the _loadExternals command which checks the the externalsToLoad against the externalsLoadedInMemory
the preferences.bundle is not among the _externalsLoadedInMemory so the path to the preferences.bundle file is put in theExternalsToLoad variable.

it then adds the preferences.bundle to the template stack and then creates a stack “glxApplicationExternals” that has the preferences.bundle and then there is a ‘go stack’ command and then a ‘start using’ for newly created stack “glxApplicationExternals”

I have confirmed that the stack “glxApplicationExternals has been created and that the preferences.bundle is in newly created stack “glxApplicationExternals”

However once it goes thru the _verifyThatExternalsAreLoaded function it determines that the Preferences external is not among the externalsLoadedInMemory so it throws the error that the preferences library is not found.

In LC 6.7.3 the Preferences external is among the externalsLoadedInMemory so there is no problem.

So any ideas what is going wrong? Has there been a change to how the startusing a stack with the preference.bundle is handled.

I noticed that when inspecting a stack in the property inspector of 6.7.3 there is an item in the dropdown menu for externals that shows the preferences.bundle path when I am inspecting "glxApplicatonExternals.

I don’t see an equivalent in LC 9.0.5 to view that information. I can however find the information using the script

put the externals of stack "glxApplicationExternals"

So glxApplicationExternals stack has the external Preferences but it does not seem to load into memory when the stack is put into use in LC 9.0.5.

Any ideas as to what is happening here and how to resolve it?

Thanks

Martin Koob

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 962
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: GLX Application Framework based app in LC 9.0.5 - preferences.bundle external not loading

Post by trevordevore » Fri May 24, 2019 1:41 pm

Martin,

The external is 32-bit and Livecode 9.0.5 is going to default to opening as 64-bit. Try downloading Levure and grabbing the Preferences external from the ./framework/helpers/preferences folder. That should work with 64-bit. Levure uses an extension by default but the external was updated with 64-bit support.

https://github.com/trevordevore/levure/ ... references

https://github.com/trevordevore/levure
Trevor DeVore
ScreenSteps - http://www.screensteps.com

Levure Application Framework: https://github.com/trevordevore/levure
LiveCode Resources for Developers: http://livecode.bluemangolearning.com

Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 237
Joined: Sun May 27, 2007 8:19 pm

Re: GLX Application Framework based app in LC 9.0.5 - preferences.bundle external not loading

Post by Martin Koob » Fri May 24, 2019 6:21 pm

Hi Trevor

Swapping in the preferences.bundle from Levure did the trick. My application launched like a charm.

Thanks for the quick answer.

Martin

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 962
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: GLX Application Framework based app in LC 9.0.5 - preferences.bundle external not loading

Post by trevordevore » Fri May 24, 2019 6:47 pm

You’re welcome. I’m glad all of the work was already done :-)
Trevor DeVore
ScreenSteps - http://www.screensteps.com

Levure Application Framework: https://github.com/trevordevore/levure
LiveCode Resources for Developers: http://livecode.bluemangolearning.com

Post Reply

Return to “Community Projects”