|
From: | Chad Hardin |
Subject: | Re: memory surprise; help a struggling newbie |
Date: | Wed, 21 Apr 2004 21:00:50 -1000 |
You're not giving the autoreleased objects a chance to get killed off. On Apr 21, 2004, at 8:19 PM, Travis Griggs wrote:
int32_t main(int32_t argc, char** argv) { CREATE_AUTORELEASE_POOL(pool); NSMutableDictionary* theDictionary = [NSMutableDictionary new]; int32_t interval = 0; while(1) { addEntriesTo(theDictionary); interval++; if((interval % 10000) == 0) { printf("%u\n", interval); } } [pool release]; }
[Prev in Thread] | Current Thread | [Next in Thread] |