Page 1 of 1
Memory limit in variables??
Posted: Thu Mar 19, 2015 11:03 pm
by dunbarx
I ran up against this in a thread on the use list, about populations of cities.
The following will fail if the repeat index is greater than 27:
Code: Select all
on mouseUp
put "1234" into temp
repeat 27
put temp & return after temp
end repeat
answer the length of temp
end mouseUp
The barrier seems to be about a length of 1,000,000,000. OSX 10.9, LC 6.7.
Craig Newman
Re: Memory limit in variables??
Posted: Fri Mar 20, 2015 1:02 am
by FourthWorld
Confirmed on Mac. On Ubuntu in v6.7 I can go up to 28, but at 29 it throws an abort execution error.
With v7 on Linux I can go up to 29, but the resulting length shows as -1610612737.
At 30 it simply crashes on Linux, but at that point we're well past the 4GB limit of addressable space the current LC engine is able to understand internally.
Re: Memory limit in variables??
Posted: Fri Mar 20, 2015 4:31 am
by dunbarx
Richard.
I had thought originally that I simply ran into the 4GB limit. But it is about a sixth of that. Should I inform Scotland?
Craig
Re: Memory limit in variables??
Posted: Fri Mar 20, 2015 5:23 am
by FourthWorld
dunbarx wrote:I had thought originally that I simply ran into the 4GB limit. But it is about a sixth of that. Should I inform Scotland?
Wouldn't hurt. They might be able to exceed that, or at very last we'll learn why it does this.
Re: Memory limit in variables??
Posted: Fri Mar 20, 2015 3:53 pm
by dunbarx
Filed bug report 15041.
Craig