• 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: Severe ASOC runtime bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Severe ASOC runtime bug


  • Subject: Re: Severe ASOC runtime bug
  • From: Terence Heaford <email@hidden>
  • Date: Thu, 20 Jan 2011 12:01:49 +0000

Hi,

I had memory issues with repeat loops at one time. What seemed to resolve it was

to set the object to missing value before executing the next pass through the loop.

It's as though the Garbage Collector does not know you are finished with it whilst in the repeat loop?

So your snippet

repeat with i from 1 to limit
set anotherObj to DataItemClass's NewDataItem_(i as string)
dict's addObject_forKey_(anotherObj, i as string)
end repeat

would become

repeat with i from 1 to limit
set anotherObj to DataItemClass's NewDataItem_(i as string)
dict's addObject_forKey_(anotherObj, i as string)
set anotherObj to missing value
end repeat

Whether this would resolve your issue, I don't know but please try.


All the best

Terry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Severe ASOC runtime bug
      • From: Dave <email@hidden>
References: 
 >Severe ASOC runtime bug (From: Dave <email@hidden>)

  • Prev by Date: Severe ASOC runtime bug
  • Next by Date: Re: Severe ASOC runtime bug
  • Previous by thread: Severe ASOC runtime bug
  • Next by thread: Re: Severe ASOC runtime bug
  • Index(es):
    • Date
    • Thread