Weird script behaviour (was libUrlDownloadToFile & urlProgress)

J. Landman Gay jacque at hyperactivesw.com
Tue Mar 22 17:02:42 EDT 2011


On 3/22/11 1:10 AM, Gerry wrote:
> So more messing about reveals that my problem wasn't with
> libUrlDownloadToFile at all - but it's still weird.
>
> I have a button that calls a command - upDateSongs - from its script.
>
> If upDateSongs is in the stack script everything works fine. However
> if it's in the card script the app goes mad - it starts processing the
> card script from the top, running any code it encounters (my
> urlProgress code was at the top of the card script, so it was
> triggered by the sending of upDateSongs from the button - hence my
> suspicions about libUrlDownloadToFile and urlProgress).
>
> Crazy. And it makes me wonder if my stack is somehow corrupt. Anyone
> seen that before?

Never. You may have some duplicate handlers somewhere, or handlers that 
call others you aren't expecting. The best thing would be to set a 
breakpoint near the beginning of the code sequence and step into every 
line until you see what's calling the wayward code.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list