Re: Error: Stack overflow
Re: Error: Stack overflow
- Subject: Re: Error: Stack overflow
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 30 Apr 2003 08:27:18 -0700
On 4/30/03 1:02 AM, "Shane Stanley" <email@hidden> wrote:
>
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).
I'm sure you're right, although I haven't hit that problem yet. That may be
the 1 GB limitation Chris N. referred to - the limit for string length in a
variable.
>
>
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.
I'm sure you're right. it certainly occurred a lot more in the OS 9 versions
of some of my scripts. I'm pretty sure I've seen it in OS X as well,
however. Since I've been using my handler now for months, I don't have any
examples to hand. I'll experiment with omitting the handler in future, and
see what happens. Maybe there are other kinds of per-machine memory
limitations which get involved.
--
Paul Berkowitz
_______________________________________________
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.