Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 634063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:15:11+00:00 2026-05-13T20:15:11+00:00

first, i followed this tutorial: three20 github tutorial i have a memory management problem

  • 0

first, i followed this tutorial: three20 github tutorial

i have a memory management problem i think, which crashes my application.

i think, _properties in my postsModel crashes my application.

the first time i launch my application and changing view to my postsTableViewController works quite fine. i created a TTLauncherView, changing back to this viewcontroller crashes my app.

here now some code of my postsModel

// .h
@interface postsModel : TTURLRequestModel {
     NSMutableArray *_properties;
}
@property (nonatomic, readonly)NSMutableArray *properties;

// .m
@synthesize properties = _properties;   
- (void)requestDidFinishLoad:(TTURLRequest*)request {
     TTURLDataResponse* response = request.response;
     NSString* responseBody = [[NSString alloc] initWithData: response.data encoding: NSUTF8StringEncoding];

     NSDictionary *json =  [responseBody JSONValue];
     TT_RELEASE_SAFELY(responseBody);

     NSMutableArray *resultSet = [json objectForKey:@"posts"];
     TT_RELEASE_SAFELY(_properties);
     _properties = [NSMutableArray arrayWithArray:resultSet];
     TT_RELEASE_SAFELY(resultSet);

     [super requestDidFinishLoad:request];
}


- (void)dealloc {
     TT_RELEASE_SAFELY(_properties);

     [super dealloc];
}

removing the tt_release of my _properties stops crashing the application by going back from this view to the Launcher view, but clicking on my TableView again, crashes the application again.

its a bit difficult to write down for me, because its quite a lot of code. i can also provide my app as a .zip file if it helps, its very basic right now.

thank

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:15:11+00:00Added an answer on May 13, 2026 at 8:15 pm

    Yes, the bug is a common one. Change:

    _properties = [NSMutableArray arrayWithArray:resultSet];
    

    To:

    _properties = [[NSMutableArray arrayWithArray:resultSet] retain];
    

    Or make the property retaining and use:

    self.properties = [NSMutableArray arrayWithArray:resultSet];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 509k
  • Answers 509k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You should only interact with your UI from the main… May 16, 2026 at 4:40 pm
  • Editorial Team
    Editorial Team added an answer You can add runat="server" to your DIVs to make them… May 16, 2026 at 4:40 pm
  • Editorial Team
    Editorial Team added an answer For pure Scala, there is scalaxb. It generates case classes… May 16, 2026 at 4:40 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I've followed this tutorial: http://anandhansubbiah.com/blog/writing-your-first-android-application/ , but no matter what I do, and what
UPDATE: First problem solved, second one described at the bottom of this post. UPDATE2:
I followed this small tutorial on how to add a scrollbar to an ItemsControl,
I have been trying to register 3 hotkeys. I followed this example (or this
I have an ASP.NET WebForms application that I'm trying to switch to MVC for
I have a table with records that has delete links. Basically I followed the
I'm currently developing my first android app, and my first game. I've been developing
I have a program that uses GLUT for its OpenGL rendering. Now I need
It's not the first time I come across delegates and I am as confused
I'm having problems with case-sensitivity in MySQL FULLTEXT searches. I've just followed the FULLTEXT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.