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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:48:07+00:00 2026-05-13T08:48:07+00:00

Here’s the scenario: On my iPhone app (OS 3.1.2), I’ve got view 1 which

  • 0

Here’s the scenario:
On my iPhone app (OS 3.1.2), I’ve got “view 1” which navigates to “view 2” using a pushViewController call. Then, on “view 2”, the user can optionally call “view 3”, which is displayed using presentModalViewController and an animation (flip horizontal transition).
I can switch view 1 <-> view 2 back and forth without any problem.
But if I do view 1 -> view 2 -> view 3, I can get back to view 2 (with the appropriate dismissModalViewControllerAnimated call in view 3) ; once in view 2, getting back to view 1 makes the application crash with the “standard” objc_msgSend error.

Here’s how I navigate from view 1 to view 2:

NewsArticleController *articleViewController = [[NewsArticleController alloc] initWithNibName:@"NewsView" bundle:nil news:f1Data];
articleViewController.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:articleViewController animated:YES];
[articleViewController release];

Here’s how I navigate from view 2 to view 3:

addFeedController = [[AddFeedViewController alloc] initWithNibName:@"AddFeedView" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:addFeedController];
[addFeedController release];
navigationController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[[self navigationController] presentModalViewController:navigationController animated:YES];
[navigationController release];

Here’s how view 3 dismisses to get back to view 2:

- (IBAction)cancel
{
    [self dismissModalViewControllerAnimated:YES];
}

And finally, the stack trace:

#0  0x96a8aedb in objc_msgSend
#1  0x04859550 in ??
#2  0x01c26908 in CFRelease
#3  0x01c49869 in __CFDictionaryDeallocate
#4  0x01c26a41 in _CFRelease
#5  0x00043cf5 in NSPopAutoreleasePool
#6  0x035f7858 in run_animation_callbacks
#7  0x035f75f5 in CA::timer_callback
#8  0x01c67ac0 in CFRunLoopRunSpecific
#9  0x01c66c48 in CFRunLoopRunInMode
#10 0x0245378d in GSEventRunModal
#11 0x02453852 in GSEventRun
#12 0x002d3003 in UIApplicationMain
#13 0x000023b0 in main at main.m:5

Maybe I’m blind and don’t see the error here, but I’m really stuck. Please help!

  • 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-13T08:48:08+00:00Added an answer on May 13, 2026 at 8:48 am

    In the 2nd block of code I posted, I was doing:

    addFeedController = [[AddFeedViewController alloc] initWithNibName:@"AddFeedView" bundle:nil];
    ...
    

    As you might infer, addFeedController was defined as an instance variable. Of course, I was nicely releasing that variable in my dealloc. But actually, I just can’t remember why I ever needed this variable to be put in the instance. This precisely caused that variable to be released twice if ever allocated once.
    A local variable with a local release was enough and this stopped my app from crashing.

    NSZombie helped me catch this bug… Thanks to you all!

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

Sidebar

Related Questions

Here is the scenario: I'm writing an app that will watch for any changes
Here is an example: I write html code inside of textarea, then I swap
Here my problem: @Assert\Regex( * pattern=/^[A-Za-z0-9][A-Za-z0-9\]*$/, * groups={creation, creation_logged} * ) I'm using the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
Here is the code I'm using inside my AsyncTask DefaultHttpClient httpClient = new DefaultHttpClient();
Here is what is supposed to happen: The moment the user chooses an option
Here is my code sample, let me know if it can be further improved?
Here's the flow that I am trying to achieve: 1) User uploads an audio
Here a simple question : What do you think of code which use try
Here's my scenario - I have an SSIS job that depends on another prior

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.