Hi,
I have one final 3.5 kb memory leak that's driving me insane. It's resulting from a thread not being exited before the view is released. The following is how I created the thread, what I'm looking for is a command like [something exit] or [something cancel] that will exit the thread right before the view is released. Thanks for the help.
I have one final 3.5 kb memory leak that's driving me insane. It's resulting from a thread not being exited before the view is released. The following is how I created the thread, what I'm looking for is a command like [something exit] or [something cancel] that will exit the thread right before the view is released. Thanks for the help.
Code:
// Created Using the following
[NSThread detachNewThreadSelector:@selector(changeColor) toTarget:self withObject:nil];
-(void) changeColor {
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
//Actions
[pool release];
}