Re: Memory usage in AppleScript... How to prevent out of memory errors?
Re: Memory usage in AppleScript... How to prevent out of memory errors?
- Subject: Re: Memory usage in AppleScript... How to prevent out of memory errors?
- From: John W Baxter <email@hidden>
- Date: Sun, 17 Jun 2001 08:25:05 -0700
At 9:50 +0100 6/17/2001, Simon Forster wrote:
>
Would the script be
>
remembering the data set? If so, why? It's NOT a property.
The contents of globals are also remembered. Set to something small, like
"" or 0 on the way out.
It may not be the applet running out of memory; depending on where your
tell blocks are and what they contain it could be one of the applications
you are telling to do something. But what follows suggests that's not the
problem.
>
Anyway, it seems that the script is failing when it comes to write the
>
finished product out to disk. I'll keep on checking it but would appreciate
>
any pointers on what could be causing problems here.
If this writing is done outside tell blocks, then there could well be three
copies of the data lying around in the applet's space during the copy. Is
it feasible to break the write down into chunks (preferably but not
necessarily chunks which are some small, power-of-two multiple of 512
bytes)? If so, that will likely help. [Somewhere in the code you call by
writing, the data is broken down into such chunks anyhow.]
-John
--
John Baxter email@hidden Port Ludlow, WA, USA