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 4336704
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:50:36+00:00 2026-05-21T10:50:36+00:00

I am new in objective c and also in development field, and i want

  • 0
  1. I am new in objective c and also in development field, and i want to know that when we quit our application then os automatically release or finish our resources that we retain during our application so why we need to do it explicitly(release or autorelease in obj c)?

  2. My second question is that i am facing problem in when i release object of app delegate class in rootViewcontroller class in dealloc method then my program is crash when again i am going to go in controller class like follwing.

    -(void) viewDidLoad
    {
    TestAppDelegate * object = (TestAppDelegate *)[[UIApplication sharedApplication]delegate];
    }

    -(void)dealloc
    {[object release];
    [super dealloc];}

  • 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-21T10:50:37+00:00Added an answer on May 21, 2026 at 10:50 am
    1. You should release or autorelease objects in order to make all the objects execute their -()dealloc’s. When process finishes OS clears all the memory occupied by process but it cannot clear some other resources (mutexes, semaphores, maybe something else) because they are kernel objects and might be used by different processes. So OS cannot know whether to delete these objects as initial process finished. Developer should clear such objects himself and this is done usually in dealloc methods of proper objects.

    2. It’s not clear when crash happens. Could you clarify?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Objective C and (unfortunately) also to the project I am working
I am new to Objective C and iPhone development. I am using CoreData on
I'm new to Objective-C and Cocoa. I've read that NSInteger and NSNumber are preferred
I'm relatively new to Objective-C and really don't know much about it yet, so
I'm new to Rails development and I'm starting with MongoDB also. I have been
I am new to objective-c and i have created a application in which there
I'm a little new to objective-C but have run across a problem that I
First, I am super-new to Objective-C/iOS development and, in fact, this question is for
I'm developing an iPhone app, and I'm kinda new to Objective-C and also the
I am new to this site, and also to iphone development. I am learning

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.