Behaviors

Peter Haworth pete at lcsql.com
Wed Sep 24 20:06:59 EDT 2014


Thanks Scott.  I've come across that situation before but this is
different.  The behaviors all work fine when the stack is first opened,
 Then, after some time using the stack and adding new controls which refer
to the behaviors, the behaviors suddenly stop being resolved.

I'd file a QCC report but I don't have a reliable recipe to reproduce the
problem.

I recall seeing a post a while back suggesting it would be good to have a
method of re-connecting behaviors when things like this happen.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>

On Wed, Sep 24, 2014 at 4:08 PM, Scott Rossi <scott at tactilemedia.com> wrote:

> Hi Pete:
>
> Not sure if this is true in your case, but one reason why this can
> sometimes happen is if, for whatever reason, a control that has a behavior
> assigned to it gets opened before is associated behavior is present in
> memory.  You might check if there is any delay occurring when launching
> the library stack.
>
> You can usually get around this without exiting LiveCode by using a script
> to set a control's behavior to the same behavior reference.  You can also
> try setting the control's behavior to empty first.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 9/24/14 3:46 PM, "Peter Haworth" <pete at lcsql.com> wrote:
>
> >I'm working with lots of controls that have behaviors.  The behavior
> >buttons are all in a library stack.  All works fine most of the time but
> >every now and again, none of the behavior scripts are executed (as
> >verified
> >with breakpoints at the start of them).  The message box shows the library
> >stack is still in use and the behavior properties all look valid
> >
> >I can't pin down exactly what causes this but I think that editing a lot
> >of
> >the behavior scripts might cause this, but I'm pretty sure that shouldn't
> >happen. When it happens, the only way to get the behaviors to work again
> >is
> >to quit LC and run again.
> >
> >Anyone else's applications' guilty of bad behavior like this and if so is
> >there a way to correct their behavior?
> >
> >Pete
> >lcSQL Software <http://www.lcsql.com>
> >Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> >SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> >_______________________________________________
> >use-livecode mailing list
> >use-livecode at lists.runrev.com
> >Please visit this url to subscribe, unsubscribe and manage your
> >subscription preferences:
> >http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list