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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:46:07+00:00 2026-05-30T10:46:07+00:00

I have the following error on a Ios 5 application using ARC: *** -[ViewDettaglio

  • 0

I have the following error on a Ios 5 application using ARC:


    *** -[ViewDettaglio respondsToSelector:]: message sent to deallocated instance 0x12193300

on console i write command:


    info malloc-history 0x12193300

and i get the following stack-trace:


    Alloc: Block address: 0x12193300 length: 192
    Stack - pthread: 0xa08a3540 number of frames: 31
        0: 0x96bdab03 in malloc_zone_calloc
        1: 0x96bdaa5a in calloc
        2: 0x16f8c93 in class_createInstance
        3: 0x170388b in _objc_rootAllocWithZone
        4: 0x21af661 in +[NSObject allocWithZone:]
        5: 0x17038b9 in _objc_rootAlloc
        6: 0x2c4c8 in -[ViewElenco CaricaViewDettaglio:] at /Users/.../ViewElenco.m:186
        7: 0x2e550 in -[ViewElenco mapView:annotationView:calloutAccessoryControlTapped:] at /Users/.../ViewElenco.m:337
        8: 0x3fa99c
        9: 0x405faa in MKLongHash
       10: 0x21aeec9 in -[NSObject performSelector:withObject:withObject:]
       11: 0x60d5c2 in -[UIApplication sendAction:to:from:forEvent:]
       12: 0x60d55a in -[UIApplication sendAction:toTarget:fromSender:forEvent:]
       13: 0x6b2b76 in -[UIControl sendAction:to:forEvent:]
       14: 0x6b303f in -[UIControl(Internal) _sendActionsForEvents:withEvent:]
       15: 0x6b22fe in -[UIControl touchesEnded:withEvent:]
       16: 0x632a30 in -[UIWindow _sendTouchesForEvent:]
       17: 0x632c56 in -[UIWindow sendEvent:]
       18: 0x619384 in -[UIApplication sendEvent:]
       19: 0x60caa9 in _UIApplicationHandleEvent
       20: 0x1a95fa9 in PurpleEventCallback
       21: 0x21811c5 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
       22: 0x20e6022 in __CFRunLoopDoSource1
       23: 0x20e490a in __CFRunLoopRun
       24: 0x20e3db4 in CFRunLoopRunSpecific
       25: 0x20e3ccb in CFRunLoopRunInMode
       26: 0x1a94879 in GSEventRunModal
       27: 0x1a9493e in GSEventRun
       28: 0x60aa9b in UIApplicationMain
       29: 0x20bb in main at /Users/.../main.m:14
       30: 0x2065 in start

The code at line 186 of ViewElenco.m is the following:


    ViewDettaglio *viewq=[[ViewDettaglio alloc] initWithNibName:@"ViewDettaglio" bundle:nil];

How can this happen?
I’m using a UINavigationController to navigate from ViewElenco and ViewDettaglio.

EDIT

Is it possibile that in the following code:


    ViewDettaglio* viewDettaglio=[[ViewDettaglio alloc] initWithNibName:@"ViewDettaglio" bundle:nil];
    viewDettaglio.idObject=idObj;
    [self.navigationController pushViewController:viewDettaglio animated:YES];

alloc returns a deallocated object?

  • 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-30T10:46:08+00:00Added an answer on May 30, 2026 at 10:46 am

    The problem has been solved: in ViewDettaglio and ViewElenco there was a MKMapView, and the delegate was set to the container ViewController.
    When pushing a new ViewController in the UINavigationController, probably some thread created by MapView was still running and calling map delegate, even if it was not visible.

    The solution was to set delegate to null when view will disapper, and set it again before view will appear:

    - (void)viewWillDisappear:(BOOL)animated
    {
        [super viewWillDisappear:animated];
        self.mapView.delegate=nil;
    }
    - (void)viewWillAppear:(BOOL)animated
    {    
        [super viewWillAppear:animated];
        self.mapView.delegate=self;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have only just started received the following error in my windows forms application
I keep getting the following error message ERROR 1064 (42000): You have an error
I have the following problem: I created a iOS 5 SDK application with Storyboard
I have the following error Exception in thread main javax.naming.NameNotFoundException: CounterBean not bound trying
I have the following error when I try to compile my code in g+
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
When printing a report, the user sometime have the following error: CrystalDecisions.CrystalReports.Engine.LogOnException: Error in
I get the following error in the query below: #1064 - You have an
I have downloaded a web project from CodePlex and am getting the following error
I have a line of code that gets the following error when run through

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.