recursionlimit mystery!

dunbarx at aol.com dunbarx at aol.com
Tue Jul 14 20:10:03 EDT 2015


I thought the recursion limit was 40,000, not 400,000.


Craig Newman



-----Original Message-----
From: Bruce Pokras <bruceap at comcast.net>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Tue, Jul 14, 2015 8:07 pm
Subject: Re: recursionlimit mystery!



> On Jul 14, 2015, at 2:57 PM, J. Landman Gay <jacque at hyperactivesw.com>
wrote:
> 
> On 7/13/2015 9:23 PM, Bruce Pokras wrote:
>> The first time I opened
the stack in 7.0.6 that had been developed
>> under 6.0.2 I received an error
message related to the “openstack”
>> command in the stack script. It said that
the value to which I had
>> set the recursionlimit property “is not a number.”
The value I used
>> was 20000000. Looks like a number to me! (I am on a Mac, so
the
>> Windows issue does not effect me). I tried various numbers until I
>>
finally narrowed it down. Attempting to set the recursionlimit
>> property to
any number greater than 65535 gives me an error that that
>> value is not a
number. Also, setting the recursionlimit to a low
>> number like 40 does not
work as expected. After setting the
>> recursionlimit property to 40 I typed
“put the recursionlimit” into
>> the message box and hit “return.” The number
that it returned was in
>> the high 30-thousands!
> 
> 
> I'm not sure about the
30,000 issue, but 65535 is the upper limit for a 16-bit number. It may be that
earlier versions of LC just didn't throw any errors if you exceeded that.
> 
>
<https://en.wikipedia.org/wiki/65535_(number)>
> "65535 occurs frequently in the
field of computing because it is the highest number which can be represented by
an unsigned 16-bit binary number. Some computer programming environments may
have predefined constant values representing 65535, with names like
MAX_UNSIGNED_SHORT."
> 
> 
> -- 
> Jacqueline Landman Gay         |    
jacque at hyperactivesw.com
> HyperActive Software           |    
http://www.hyperactivesw.com
> 
> 

Jacque, the default value of the
recursionlimit property is 400000. So it can be more than 65535 so long as you
do not try to set it separately. I know from experience, when I created an app
that maxed out the default 400000 due to too much recursion, that setting it
higher (20000000 in my case) actually did do something. The app worked fine
after that.

I’m going to submit a bug report and see what happens (if
anything).
_______________________________________________
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