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

  • SEARCH
  • Home
  • 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 3242672
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:20:34+00:00 2026-05-17T18:20:34+00:00

I want to know what is the difference between before releasing my object of

  • 0

I want to know what is the difference between before releasing my object of [super delloc]
and after releasing my object of line [super delloc]

For example,
Before..

- (void)dealloc {
    [theAudioPlayer stop];

    [soundFilePath release];

    [theAudioPlayer release];

    [super dealloc];
}

Now after releasing object..

- (void)dealloc {

    [super dealloc];

    [theAudioPlayer stop];

    [soundFilePath release];

    [theAudioPlayer release];
}

When i used 1st case and i navigating my viewController firstly 1st to 2nd viewController class and again come backe 2nd to 1st then it will give me some error something following console.

#0  0x02d29c93 in objc_msgSend ()
#1  0x0628ae60 in ?? ()
#2  0x02b24814 in __CFURLDeallocate ()
#3  0x02b23ed0 in _CFRelease ()
#4  0x0012af48 in -[NSURL release] ()
#5  0x02795827 in -[AVAudioPlayer dealloc] ()
#6  0x0000480e in -[ViewController dealloc] (self=0x6285340, _cmd=0x2c0a934) at /Users/ajm/Desktop/DetectiveJone/Classes/ViewController.m:209
#7  0x02d23e9d in objc_setProperty ()
#8  0x0039f7b3 in -[UINavigationController setDisappearingViewController:] ()
#9  0x0039ce91 in -[UINavigationController _clearLastOperation] ()
#10 0x0039d732 in -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] ()
#11 0x0054d25f in -[UINavigationTransitionView _notifyDelegateTransitionDidStopWithContext:] ()
#12 0x0054e39e in -[UINavigationTransitionView _navigationTransitionDidStop] ()
#13 0x00325d54 in -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] ()
#14 0x00325be6 in -[UIViewAnimationState animationDidStop:finished:] ()
#15 0x048a1933 in run_animation_callbacks ()
#16 0x048a17da in CA::timer_callback ()
#17 0x02b497dc in CFRunLoopRunSpecific ()
#18 0x02b488a8 in CFRunLoopRunInMode ()
#19 0x0356989d in GSEventRunModal ()
#20 0x03569962 in GSEventRun ()
#21 0x00307372 in UIApplicationMain ()
#22 0x00002018 in main (argc=1, argv=0xbffff050) at /Users/ajm/Desktop/DetectiveJone/main.m:14
(gdb) 
  • 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-17T18:20:34+00:00Added an answer on May 17, 2026 at 6:20 pm

    The second way is categorically wrong. NSObject’s dealloc literally deallocates the object, and [super dealloc] inevitably reaches NSObject’s implementation for any properly written Cocoa class. This means that the memory for the object executing the dealloc method is no longer allocated, and accessing the memory that used to be the object’s instance variables — even just to send them release — is undefined behavior.

    Because of this, [super dealloc] should always come at the end of the method. You can’t do anything meaningful after that line executes.

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

Sidebar

Related Questions

I want to know the difference Between System.ApplicationException and System.Exception . Can anyone explain
I want to know the difference between : $this->forward(module, action); And $this->redirect(module/action); My first
I am a shell script newbie. I want to know the difference between ${var%pattern}
I am creating ASP.NET textbox controls dynamically. I want to know the difference between
I want to know the main difference between .live() vs. .bind() methods in jQuery.
I want to know what the difference is between alt= and name= Would it
I want to know what is the difference between a query and a view
I want to know what exactly is the difference between CLR & CLI? From
I want to know what's the difference between OracleServiceORAL service(on Window XP) and Oracle
Yes, I do understand the difference between them. What I want to know is:

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.