Re: Severe ASOC runtime bug
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 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