put URL

Peter Haworth pete at lcsql.com
Fri Sep 18 18:32:26 EDT 2015


Thanks Dave.

I've moved the resetAll command to the end of my processing instead of at
the start and all seems to work fine now.

On Fri, Sep 18, 2015 at 3:28 PM Dave Cragg <dcragg at lacscentre.co.uk> wrote:

>
> > On 18 Sep 2015, at 22:16, Peter Haworth <pete at lcsql.com <mailto:
> pete at lcsql.com>> wrote:
> >
> > I guess I spoke to soon.
> >
> > The put URL code is in a button's mouseUp handler and the resetAll is at
> > the start of handler.
>
> Pete,
>
> I found this from a post from 8 years ago. (Oh dear.) It refers to
> libUrlResetAll, but that is what the resetAll command calls.
>
> -----------------------------
>
> If you do use libUrlResetAll, be careful. My general advice would be
> to try not to use it, but if you do, use it at the end of a handler
> or before a period of "idle time". If you have any url calls (get
> url, etc.) after libUrlResetAll in the same handler, the results can
> be unpredictable. I'm not completely clear of the reason for this.
> libUrlResetAll clears a bunch of script local variables (using
> "delete local"), and I suspect that the engine may not do this
> deletion immediately. So subsequent url calls may start and then have
> the script locals "pulled from under them" so to speak. I can't
> confirm this, just a suspicion. :-)
> ----------------------------------
> _______________________________________________
> 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