Re: runtime error
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