Strange hang

Peter Haworth pete at lcsql.com
Sun Jan 13 19:10:24 EST 2013


On Sun, Jan 13, 2013 at 3:53 PM, Kay C Lan <lan.kc.macmail at gmail.com> wrote:

> Have your modified your delete handler in the last couple of days?
>

No, nor even in the last few months

>
> Have you modified the handler the Debugger points to in the last couple of
> days?
>

No, not for months either


>
> If you were to create a new button (or in the msg box) put:
>
> repeat with x = 2 to 22
>   delete local tArray[x]
> end repeat
>
> does it still hang? If not, does hard wiring the numbers in your script
> fix it?
>

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.

>
> Does it hang at the very first delete command? If not is it always the
> 2nd (3rd, 4th.. last) delete in the repeat loop or is it always when x
> = a specific number.
>

Always the first delete command.


>
> If you replaced delete with put local tArray[x} & cr after msg, does
> it print out as expected?
>
> What happens if you enclose the delete in a 'try' structure?
>

Will try both those and let you know.


>
> HTH
>
> On Mon, Jan 14, 2013 at 4:04 AM, Peter Haworth <pete at lcsql.com> wrote:
> > I have a command that deletes keys from an array, given a start and end
> key
> > value (the keys are numeric).  This has been working fine for months and
> is
> > simply a repeat loop with a "delete local tArray[key]" command.
> >
> > Suddenly, this has started to cause LC to hang.  In debug, as soon as the
> > delete command is executed, I get a runtime error message on a line in a
> > completely different handler and LC hangs hard, needing a force quit to
> get
> > out of it.
> >
> > The array looks is correctly structured and the start and end key values
> > exist in the array, as do all the key values between them.
> >
> > Any ideas about how to figure out what's going on would be most welcome.
> >
> > Pete
> > lcSQL Software <http://www.lcsql.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