views:

84

answers:

1

Hello,

i have an app that starts with the default code for iPhone Apps:

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];

Cause my app never stopps, the [pool release] is never called. Has the standard UI loop of UIApplicationMain an own AutoreleasePool which destroys the autoreleased objects of my app periodical? Or did i have to use a new AutoreleasePool on my own responsibility at a point of my code, which is periodical called to keep my app clean of memory leaks when it runs endless?

+1  A: 

See "is the main.m really the place, where the autorelease pool of the main run loop is created by every event?"

Toon Van Acker
thanks, seems like searching is a hard task for me ;-)
Tim
I've managed to do the same, happens to us all :P
Toon Van Acker