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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:03:49+00:00 2026-06-02T02:03:49+00:00

In my rss feeder like application, I have an array which contains NewsItems, and

  • 0

In my rss feeder like application, I have an array which contains NewsItems, and each item are responsible to request its image from the web asynchronously (By using ASCHTTPRequest library and NSOperationQueue method)

I would like to add a refresh function to my rss feeder. My attempt is to recreate a new array again (and dealloc all the old NewsItems) and repeat the request process.

However, it would result in a crash with EXC_BAD_ACCESS error if I refresh the content BEFORE all NewsItems get their images. (Since the old items are dealloc and there is callback to those items through delegate..)

How should I solve this problem in a better way? Does it mean that I cannot simply dealloc all my old items without checking if each of them is already done its request?

Sorry if I cannot describe my question clearly. Looking forward to your help Thanks!

  • 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-02T02:03:50+00:00Added an answer on June 2, 2026 at 2:03 am

    You’ll have to keep a track of all your current HTTP Requests. And when you wish to refresh, cancel all your requests, and then recreate your new array. This way your asynchronous requests won’t try to update your deallocated images.

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

Sidebar

Related Questions

I have an rss feed which i would like to read from in my
I am Making an Iphone application which is web-service enabled. Also I have skeleton
I have an RSS Feed class, which holds the feed url, name, etc. and
I have created an RSS parser using NSXMLParser class. The feed has an item
I created a MVC 2 Application to work as a RSS Feeder and deliver
I have a RSS Feed in which i get date and news description, i
i am creating rss reader application with php.it is basicly getting rss url's from
I have a sample RSS from Amazon. While the RSS displays correctly with images
I have a YouTube RSS feed set up to show YouTube videos in a
I have an rss XML file: <?xml version=1.0 encoding=UTF-8?> <rss version=2.0> <channel> <title>ABC News</title>

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.