FROM : justin webster
DATE : Mon Apr 04 23:07:31 2005
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?
DATE : Mon Apr 04 23:07:31 2005
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?
| Related mails | Author | Date |
|---|---|---|
| justin webster | Apr 4, 23:07 | |
| Shawn Erickson | Apr 4, 23:22 |






Cocoa mail archive

