• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Memory usage in AppleScript... How to prevent out of memory errors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Memory usage in AppleScript... How to prevent out of memory errors? (From: Simon Forster <email@hidden>)

  • Prev by Date: Re: Using Akua Sweets' "decompose"
  • Next by Date: Re: Copying Resource Files ???
  • Previous by thread: Memory usage in AppleScript... How to prevent out of memory errors?
  • Next by thread: Add Scaled
  • Index(es):
    • Date
    • Thread