• 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: Cocoa-dev Digest, Vol 5, Issue 393
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 5, Issue 393


  • Subject: Re: Cocoa-dev Digest, Vol 5, Issue 393
  • From: John Stiles <email@hidden>
  • Date: Wed, 12 Mar 2008 10:47:22 -0700

Daniel Child wrote:
Each record is allocated and explicitly released at the end of the loop after adding it to the table. I thought autorelease might wait too long to get rid of it, so I do it explicitly.
Just because you never autorelease it in your code, doesn't mean that it is never autoreleased. The system could be doing all sorts of things that you don't know about. You should still wrap your loop in an autorelease pool.
As for Instruments, unfortunately I'm doing this on Tiger.
ObjectAlloc is the Tiger equivalent.

On Mar 12, 2008, at 12:00 PM, email@hidden wrote:

You're running out of memory.
If your inner loop isn't wrapped in an autorelease pool, consider adding
one.
Also, use Instruments to see where the memory is going.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: runtime error
      • From: Daniel Child <email@hidden>
References: 
 >Re: Cocoa-dev Digest, Vol 5, Issue 393 (From: Daniel Child <email@hidden>)

  • Prev by Date: memory warnings
  • Next by Date: Re: Cocoa-dev Digest, Vol 5, Issue 393
  • Previous by thread: Re: Cocoa-dev Digest, Vol 5, Issue 393
  • Next by thread: Re: runtime error
  • Index(es):
    • Date
    • Thread