Page 1 of 1

LC Crash - is this a known cause...

Posted: Wed Jan 14, 2015 5:55 pm
by MrAlobar
I'm a new LC coder....

While trying to build a calender using create in a repeating loop I crashed LC - I narrowed down the cause to this line...

put +1 into tCalCount

I proved this by creating a fresh stack with this line in the mouseUp handle of a button - nothing else.

Does anyone know if this is known to crash LC ?

Re: LC Crash - is this a known cause...

Posted: Wed Jan 14, 2015 6:12 pm
by Klaus
Hi MrAlobar,

shouldn't happen at all! :shock:

Does it also crash if you leave out the PLUS: put 1 into tCAlCount
?


Best

Klaus

Re: LC Crash - is this a known cause...

Posted: Wed Jan 14, 2015 6:19 pm
by magice
Is this a case where you want to increment tCAlCount, or is it a case where you just want to specify that "1" is a positive number? And, if it's the former, does that incrementation effect the termination of the loop? If so try "add 1 to tCalCount"

Re: LC Crash - is this a known cause...

Posted: Thu Jan 15, 2015 3:02 pm
by MrAlobar
Hi Klaus - it doesn't crash if I leave out the PLUS.

Hi Magice - I'm incrementing tCalCount by 1 and yes, "add 1 to tCalCount" does work ok.

Thank you both for your suggestions - I have raised a bug report (#14384), the bug has been confirmed and assigned and is awaiting build.

( I've now signed up for the Create it with LC course ! )