Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

    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 :(


— asked September 25th 2010 by Alan Young
  • compile
  • error
  • iphone
  • leaks
  • memory

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.

    — answered October 4th 2010 by Clifton Labrum
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.