Strange hang

Robert Sneidar slylabs13 at me.com
Mon Jan 14 14:42:56 EST 2013


Wha? Pass by parameter? Isn't there an issue with using that method with arrays? Maybe I misunderstand. What I know is that you cannot pass an element of an array as a parameter to a command or function. You can only pass the entire array. I ran into this some time ago, which is why I know. 

Bob


On Jan 13, 2013, at 5:33 PM, Kay C Lan wrote:

> On Mon, Jan 14, 2013 at 8:10 AM, Peter Haworth <pete at lcsql.com> wrote:
>> No, and as in my earlier email when the handler that i causes the problem
>> is called from elsewhere in my stack, it works without a problem.   I can't
>> hard wire the numbers because they are passed in as parameters to the
>> handler.
> 
> Sorry I didn't understand that from your earlier email.
> 
> I appreciate that in production you have to pass by parameter but in testing:
> 
> put a breakpoint immediately prior to the delete handler being called,
> Run the script, at the breakpoint check tArray[] for it's start and
> end values; lets say 5 and 55. Stop the script. Hard input 5 and 55
> into the delete handler and move the breakpoint to immediately after
> the delete handler. Run the script again. If it works, then there is
> something screwing up when passing the parameters.
> 
> The fact that you can call the handler from elsewhere and it works
> fine suggests to me that in this particular case the parameters are
> not being passed correctly. Unfortunately what doesn't make sense is
> why that would cause LC to hang.
> 
> _______________________________________________
> 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