Re: Main Thread autorelease pool, memory usage question?

2008-12-16 Thread Chad Podoski
Thank you very much Mike and Ken, spot on. Amazing this issue hasn't gotten more attention, seems like a pretty big issue. On Dec 15, 2008, at 5:46 PM, Ken Ferry wrote: No, you're on target. The thing to understand is that the implementation of the main event loop is basically this: while

Main Thread autorelease pool, memory usage question?

2008-12-15 Thread Chad Podoski
I have a process that is uploading images. My issue is as following, when uploading a large number of images and my application does not have focus, memory usage continues to climb until it is maxed out, causing the app to hang/crash. On the other hand, if the app has focus and the user

Re: Main Thread autorelease pool, memory usage question?

2008-12-15 Thread Ken Ferry
No, you're on target. The thing to understand is that the implementation of the main event loop is basically this: while (1) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSEvent *event = [self nextEventMatchingMask…]; [self sendEvent:event]; [pool drain]; } The

Re: Main Thread autorelease pool, memory usage question?

2008-12-15 Thread Michael Ash
On Mon, Dec 15, 2008 at 9:53 PM, Chad Podoski c...@bluelavatech.com wrote: I have a process that is uploading images. My issue is as following, when uploading a large number of images and my application does not have focus, memory usage continues to climb until it is maxed out, causing the app