GLX application framework: application stacks and .dat files?

Trevor DeVore lists at mangomultimedia.com
Thu Mar 3 08:58:18 EST 2011


On Thu, Mar 3, 2011 at 8:09 AM, Keith Clarke <
keith.clarke at clarkeandclarke.co.uk> wrote:

> Hi folks,
> I'm trying to configure a GLX application framework for my first 'proper'
> application but I'm struggling with getting my stack to be launched by the
> GLX launcher stack...
>
> I have copied my 'app.rev' stack file into the GLX application directory,
> successfully added it as a stack (a required, load on start-up, window type)
> and deleted the default program.dat stack reference. I have also updated the
> application stack script's kProgramStackName Constant to 'admin' (and I've
> also tried 'admin.rev'). This is the related GLX lesson
> http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/6698-Incorporating-Your-Program-Stack-Into-the-Framework-Based-Application


> But, if I open the launcher app in LiveCode, my stack doesn't get loaded or
> opened. Am I missing something obvious here?


Questions:

* What happens when you click on the launcher stack? Does it disappear and
then nothing happens?

* Is "admin" the name of the main stack that is stored in your app.rev stack
file in memory?

To start troubleshooting this you can add a breakpoint to the
glxapp_openApplication handler in the application stack script. This is the
handler that opens the stack targeted by kProgramStackName. When you get to
the breakpoint you can refresh the list of stacks in the Application Browser
(little refresh button at the bottom of the left column in the Application
Browser) and verify that you have a stack in memory whose name matches the
value of kProgramStackName.

If you aren't familiar with using the debugger then you could add the
following line to the glxapp_openApplication handler:

answer there is a stack kProgramStackName


> What are these GLX .dat stack files all about, anyway?


This lesson explains what each .dat file does.

http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5545-Understanding-How-The-Framework-Is-Designed


-- 

Trevor DeVore

Blue Mango Learning Systems

ScreenSteps: http://www.screensteps.com

LiveCode Resources for Developers: http://livecode.bluemangolearning.com



More information about the Use-livecode mailing list