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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:33:18+00:00 2026-06-04T01:33:18+00:00

I converted my huge IOS program to ARC using xcode auto conversion. After that

  • 0

I converted my huge IOS program to ARC using xcode auto conversion. After that I am getting the following error:
[CFString retain]: message sent to deallocated instance

The trace shows the following line where it crashed:

UIImage *image = [[UIImage alloc] initWithContentsOfFile:tile.imagePath];

Next line in the trace gives:__arclite_objc_retainAutoreleasedReturnValue at /SourceCache/arclite/arclite-7.1/source/arclite.m:241

Can someone suggest me where I can look further, or what can I do to remove this crash?

Thanks a lot

EDIT: Looks like the (NSString *)p initialization in the code below needs some changes. How should I change it, so that the tile.imagePath doesn’t become null?

- (id)initWithFrame:(MKMapRect)f path:(NSString *)p{
    if (self = [super init]) {
        imagePath = p;
        frame = f;
    }
    return self;
}

Thank you.

  • 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-06-04T01:33:19+00:00Added an answer on June 4, 2026 at 1:33 am

    imagePath is probably a __unsafe_unretained iVar (or maybe you’re seeing weak or assign). Change it to strong so that it is retained by ARC.

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

Sidebar

Related Questions

I've converted from using MGTwitterEngine to the new iOS 5.0 twitter API. My app
I have a huge collection of videos that all need to be converted into
I am editing a huge number of legacy ASP pages that have been converted
'??' gets converted into '^' if I compile mn VC++ program and run it
I have an app that struggles to perform well on iOS 5 running on
I have a huge collection of visual foxpro dbf files that I would like
I have a Java program that makes a request to a web service that
I'm writing a program that uses a bunch of two-way bindings and the amount
I have a few huge tables on a production SQL 2005 DB that need
I have a huge array that is written literally thanks to a script. It

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.