• 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 13:31:02 -0400


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

Some points of interest:

1. vm_allocate(size=1069056) -  Is each of your 'thousands and
thousands of records' this large? If so then it is no wonder that you
will run out of address space after a couple of thousand (on 32-bit)
No. I build one table instance (a class I set up to house the data), one parsing strategy instance, and one conversion strategy instance (to convert some data in one of the fields). Each line from the raw data is appropriately parsed and placed into a record, which is added to the table. After the record is added, it is released, since the table will retain it.

2. If not, then after you have parsed each record, are you sure you
have freed any temporary parsing data from which you create your table
items each time you create an item?
Yes. Anything not made with a convenient constructor (i.e., every alloc call) gets an explicit release.

3. If all else fails, try building your app as 64-bit
I'm using Tiger.... Thanks, though. I'll consider moving it to Leopard if all else fails.
_______________________________________________


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


  • Prev by Date: Re: Where are the system spellchecker prefs stored?
  • Next by Date: Re: Cocoa-dev Digest, Vol 5, Issue 393
  • Previous by thread: Re: runtime error
  • Next by thread: encoding objects containing NSData ivars using NSKeyedArchiver
  • Index(es):
    • Date
    • Thread