Weird script behaviour (was libUrlDownloadToFile & urlProgress)

Peter Brigham MD pmbrig at gmail.com
Tue Mar 22 22:45:14 EDT 2011


You don't have a "do" statement in there somewhere, do you? The only  
way I could imagine that kind of behavior happening would be with  
something like "do script of this card."

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig


On Mar 22, 2011, at 9:38 PM, Gerry Orkin wrote:

> Jacqueline,
>
> As I mentioned, it goes crazy. Setting a breakpoint in the referring  
> button script jumps me to the top line of the card script, but not  
> to the handler being called. The trace shows that LiveCode is  
> attempting to evaluate every line of code in the card script,  
> starting from the top, and including blank lines.
>
> Gerry
>
> -- http://gerryorkin.com
>
> On 23/03/2011, at 8:02 AM, "J. Landman Gay"  
> <jacque at hyperactivesw.com> wrote:
>
>> 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
>>
>> _______________________________________________
>> 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