tracking down freeze based on timing, maybe?

Matt Maier blueback09 at gmail.com
Sun Dec 13 18:39:07 EST 2015


Yeah, there's a lot happening so I can't paste it into an email.

Does Livecode have any kind of logging built into it? Maybe something that
shows what it was doing when it froze? The logging I add to my handlers
only lets me know what's NOT causing the freeze. My logs show all of my
handlers exiting and no new ones starting when everything locks up.

 Is there a way for something a handler was doing to hang around after the
handler ends and kind of stack up?

I tried putting get flushEvents("all") at several points in the execution
path but it didn't make a difference.

On Sun, Dec 13, 2015 at 11:40 AM, Scott Rossi <scott at tactilemedia.com>
wrote:

> Without knowing what's happening in your handlers, there's not really any
> way to guess at what might be going on, but you might try using the
> flushEvents function to ignore extra or unwanted click events.
>
> Dated looking doc reference here:
> http://docs.runrev.com/Function/flushEvents
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
> > On Dec 13, 2015, at 9:23 AM, Matt Maier <blueback09 at gmail.com> wrote:
> >
> > I can make my program freeze if I click the trackpad button really fast.
> >
> > If I click the button down, then wait, then up, it doesn't freeze. I
> used a
> > log to find out all of the handlers it got through before it froze. Most
> of
> > the time it logs through all of the related handlers and then freezes up
> > after they're all done, but every now and then it stops logging in the
> > middle of a handler.
> >
> > So I suspect that whatever's causing the freeze might be something
> > happening either in parallel with my handlers, or something my handlers
> > leave behind that eventually (after they end) builds up until it causes a
> > freeze.
> >
> > The sequence is basically:
> > some mouse message
> > - handler 1
> > -- handler 2
> > - handler 1
> > end mouse message
> >
> > Any suggestions for tracking down what's causing the freeze? It's not
> > happening inside of the handlers I wrote. Instead it's happening after
> all
> > of my handlers are finished, and then only if I click the button as fast
> as
> > possible instead of slowly down-up.
> > _______________________________________________
> > 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