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

Re: runtime error


  • Subject: Re: runtime error
  • From: Daniel Child <email@hidden>
  • Date: Wed, 12 Mar 2008 16:18:28 -0400

I see your point now. Thanks. Putting in the pool enabled the application to complete parsing of the raw data. Unfortunately, the program now stops several minutes into the sorting operation (the large table has to be sorted). I'll look for a spot to place an autorelease pool, though I don't believe there is an obvious internal loop in this case.

Incidentally, I tried running ObjectAlloc and noticed that there was one general block that kept growing (no doubt, the table as records were being added). Is there a way to figure out exactly which specific points of code the various blocks refer to. (Sorry if that is a newbie question. Performance tools are totally new territory for me.)

On Mar 12, 2008, at 1:47 PM, John Stiles wrote:

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.

_______________________________________________

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: John Stiles <email@hidden>
    • NSTimer and seg faults
      • From: Gregory Short <email@hidden>
References: 
 >Re: Cocoa-dev Digest, Vol 5, Issue 393 (From: Daniel Child <email@hidden>)
 >Re: Cocoa-dev Digest, Vol 5, Issue 393 (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Core Animation geometry, layer hosting, and resolution independence
  • Next by Date: Re: BitMap data format and autorelease
  • Previous by thread: Re: Cocoa-dev Digest, Vol 5, Issue 393
  • Next by thread: NSTimer and seg faults
  • Index(es):
    • Date
    • Thread