discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memory surprise; help a struggling newbie


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];
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]