Strange hang

Kay C Lan lan.kc.macmail at gmail.com
Sun Jan 13 20:33:41 EST 2013


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.




More information about the Use-livecode mailing list