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" <jac...@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         |     jac...@hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to