vm_allocate errors
vm_allocate errors
- Subject: vm_allocate errors
- From: justin webster <email@hidden>
- Date: Tue, 5 Apr 2005 09:07:31 +1200
i'm getting an error which I'm sure is caused by my poor grasp of memory management techniques.
I believe a '[NSData mutableCopy]' call is failing giving the following error:
*** malloc: vm_allocate(size=17367040) failed (error code=3)
and
<NSInvalidArgumentException> *** NSCopyMemoryPages(0xfe31d000, 0x0, 13889536)
I'm assuming it's the second argument which is invalid here. These errors always have a second argument od 0x0.
the application processes audio files and runs happily for a couple of hundred files at a time. once it gets to around 400 files (more likely a total file size) it throws the error.
I am looping thru the files in a second thread with the autorelease pool correctly allocated but I'm wondering if the pool is 'filling up' (running out of memory) before it gets released at the end of my function.
I tried the same routine without detaching to a second thread but the result was the same.
I've tried moving my larger objects to manually alloc/init/release but saw no change.
I know I'm leaking but just can't see where.
any ideas? _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden