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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:16:02+00:00 2026-05-20T10:16:02+00:00

I got stuck by this error message because for three days I didn’t find

  • 0

I got stuck by this error message because for three days I didn’t find the object _cfTypeID neither the object’s address noted after that message. I know that there must be an array that I access but it is already destroyed.

My iPhone app is based on a tab bar controller and with one tab I switch to a new view controller which creates a navigation view controller and hide the whole tab bar controller from being accessed. I’ve chosen this way because the whole tab bar view logic runs in portrait orientation while the navigation view controller does its job in landscape orientation.

The first run is always fine when it starts with any portrait view via tab bar, changing to the landscape view of the navigation view controller. I have three views pushed on the navigation stack. On the first run there is also no crash when I navigate back to the root controller, leave this on and get back to the tab bar controller’s last visible view. At that point the navigation view controller gets deallocated.

The crash happens on the second run, navigating again from the tab bar controller to the navigation view controller down to the third pushed view controller. At that point the navigation view controller and its three view controllers on stack are recreated. The crash happens when I leave the bottom most view on the stack either by pressing the backBarButton or the rightBarButton which I have created as a Done button.

I’ve not yet found where I’m not fine with the memory management as I don’t have an array that’s called _cfTypeID myself nor do I access this array directly. GDB goes crashing during a call to synchronize of NSUserDefaults which I use in viewWillDisappear of the view that just gets off screen. Instruments with the Leaks tool terminates the process after this crash and its messages are not helpful for me.

…and there is a difference of behaviour between running in the simulator and on the device (which is iPhone 4): on the device I can pop one more view controller from the navigation view controller and get the crash when leaving the view by the backBarButton.

I’ve decided not to post any code lines because there is lots of it and might not make sense to put it right in here. But I can supply parts of it if needed. I’ll be glad for hints to tools I can use to identify either the broken array or anything else to revise my memory management (which is of course not perfect as I’m quite new to objc coming from c++ and php).

Cheers,
Konran

  • 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-20T10:16:03+00:00Added an answer on May 20, 2026 at 10:16 am

    _cfTypeId is not the name of the array, it’s the name of the message being sent to an instance of CFArray. The specific error is coming from somewhere inside the framework code which is why you don’t recognize anything about it, but the cause is that something in your code is either not retaining something it should be, is releasing something that it shouldn’t, or is prematurely releasing something that it still wants to be using.

    BTW, don’t use retainCount, it doesn’t work like you think and is generally useless.

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

Sidebar

Related Questions

I'm using Lucene.Net in an ASP.NET application on a shared host. Got this stack
I'm currently working on a very short project on Prolog, and just got stuck
I got a little stuck and I'm hoping someone can point me in the
got a new blog at wordpress few days ago ( http://ghads.wordpress.com ) and I
I've got a stock Debian Etch system, using Exim4. The domains are mostly local
i've got a stock standard ASP.NET web site, deployed to our development machine (internal
I've got the bare minimum to handle the Linux/MySQL parts of the stack, but
Got a bluescreen in windows while cloning a mercurial repository. After reboot, I now
Got a class that serializes into xml with XMLEncoder nicely with all the variables
Got myself in a bit of a pickle here ... working on a CMS

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.