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

  • Home
  • SEARCH
  • 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 7015975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:43:23+00:00 2026-05-27T22:43:23+00:00

I am running into some issues with the memory management on my app. The

  • 0

I am running into some issues with the memory management on my app. The app will run properly for a while, then I will get a Received memory warning error. I then ran my app through Profile to find the memory leaks. After tracking the leaks, I got a 100% memory leak on this line:

    [self performSelectorOnMainThread:@selector(loadingProgress:) withObject:[NSNumber numberWithFloat:0.0] waitUntilDone:NO];

I may be naive, but I didn’t know that this could leak…

Anyone know how I can fix this?

  • 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-27T22:43:23+00:00Added an answer on May 27, 2026 at 10:43 pm

    The only possible leak is if you are over-retaining the NSNumber instance in your thread. But for that to cause a crash, you’d have to be spinning off thousands and thousands of threads, indicating a very serious problem in and of itself.

    Note that the Leaks instrument shows you where the leak was allocated, not where it might have been over-retained.

    Likewise, leaks only shows, well, leaks. It won’t show accretion of allocations where the allocations are still referenced by the global object graph. I.e. if an object is reachable by a reference path starting at a global variable, then it isn’t a leak.

    Try heapshot analysis. It is very good at finding this kind of accretion over time.

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

Sidebar

Related Questions

I'm running into some issues with having a lot of UIImages in memory, so
I'm currently running into some issues resizing images using GD. Everything works fine until
I have been running into some issues with animating multiple CALayers at the same
I'm trying out WinHost and I'm running into some issues with sub-domains. On WinHost,
I'm running into some issues with boost::bind and creating threads. Essentially, I would like
I'm trying to build a website using object-oriented functionality, and running into some issues.
I'm trying to learn MariaDB (v5.2.4), but I'm running into some issues. I can
We are running into unusually high memory usage issues. And I observed that many
I'm running into some issues doing a describeSObject call from a ruby on rails
I'm running into some little glitch on Internet Explorer. The site looks like 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.