Case Study: Behaviors Failing - Can't set break points

Todd Geist todd at geistinteractive.com
Tue Dec 27 13:23:17 EST 2011


On Tue, Dec 27, 2011 at 10:14 AM, Bob Sneidar <bobs at twft.com> wrote:

> Where are the behavior buttons located? They have to be in the open stack
> or *AN* open stack. I may be mistaken about this, but I think I am not. I
> have a behavior button on the first card of an app stack, and all my
> behaviors work fine there. They should also work if they are on the first
> card of any stack you start using. Someone who knows more should correct me
> if I am wrong.
>

The behaviors are in a library stack.  That stack was being loaded by the
Main stack, in a PreOpenCard handler. the Main stack was also using the
behaviors.  They are two separate stacks.

So the Main stack loads into memory, then On PreOpenCard it loads the
Library stack that has the behaviors.  This is the problem.  If the library
stack is loaded first into memory, everything works.  So I may need a
launcher file that Loads the Libraries first THEN the main stack.

Todd



More information about the use-livecode mailing list