Re: Error: Stack overflow
Re: Error: Stack overflow
- Subject: Re: Error: Stack overflow
- From: Shane Stanley <email@hidden>
- Date: Wed, 30 Apr 2003 18:02:04 +1000
On 30/4/03 5:08 PM +1000, Paul Berkowitz, email@hidden, wrote:
>
Before John ever answered, I supplied an equivalent script that would not
>
fail on short chunks. It has been ignored here
Well I only ignored it in so far as I was pointing out that in the case in
question it was probably addressing the wrong problem. But if you consider
your script, although you're reading in separate chunks, you're still
putting everything into one variable. Do that enough times and _that_ will
cause a memory error too (although it will probably take a much bigger file
to do it).
Let me try again: in Classic/OS 9, Script Editor ships with a very small
memory partition, as do default applets. What may look like problems with
the read command may well be caused by this.
Using a big memory partitions to deal with big files isn't such a novel
idea; we've done it with other apps for years.
--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.