Hi All,
bit of a new iphone / objective-c coder, but long time hacker

. I'm have a strange problem with an object that is getting destroyed and I can't work out why
I create a new object:
Code:
myUploadRootViewController = [[uploadRootViewController alloc ] initWithNibName:@"uploadRootViewController" bundle:nil];
and then when I come to use it I get an 'EXC_BAD_ACCESS' which appears to be because as soon as the view controller is created it's dealloc method is called. (proved with an NSLog statment)
Now given I've called alloc and don't call release it anywhere or add it to an autorelease pool, how/why is it getting released ?
As far as I understand if I alloc an object I'm responsibe for a release and/or memory leak
Any pointers welcome...
sal