Memory Leaks
Hi everyone the appcelerator is excellent at compiling native objective c xcode code.
I don't not what I have done but there is a memory link in my app the iphone sim points to this as being the problem.
-(void)initController
{
sharedApp = self;
networkActivity = [[NSLock alloc] init]; //<--- This line
networkActivityCount = 0;
// attach our main view controller
controller = [[TiRootViewController alloc] init];
// Force view load
controller.view.backgroundColor = [UIColor clearColor];
if (![TiUtils isiPhoneOS3_2OrGreater]) {
[self loadSplash];
}
}
I think is something i've not done when connecting to web serve for data can anyone help ? I am not sure what I've done or not done :(
Thanks
1 Answer
-
I've seen this same memory leak, but I'm not using any network capabilities in my app, so that may not be the issue.
Mine is on Line 231 of TiApp.mm in the Xcode project, which appears to be the same one you've indicated above.
Let me know if you figure anything out. Thanks.