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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:08:29+00:00 2026-05-28T05:08:29+00:00

my iphone application crash after raising 4 warnings of low memory, instruments is showing

  • 0

my iphone application crash after raising 4 warnings of low memory, instruments is showing no memory leaks but in memory allocation live Bytes goes up to 4.7mb and Over all Bytes goes upto 79.0 MB and application crash at this point

any help will be highly appreciated

for (int i = 0; i<3; i++) 
{

    UIImage *rendered_image;
    UIGraphicsBeginImageContextWithOptions(sub_view.bounds.size, NO, 0.0);

    [appdelegate.arrimages removeAllObjects];
    [appdelegate.arranimations removeAllObjects];

    NSString *oldgroup = [[NSString alloc] init];
    NSString *currentgroup = [[NSString alloc] init];

    for(int i=0; i<[sub_view.data count]; i++)
    {

        oldgroup = (i>0) ? [sub_view.group objectAtIndex:(i-1)] : [sub_view.group objectAtIndex:i];
        currentgroup = [sub_view.group objectAtIndex:i];

       /*
        IF DIFFERENT GROUP NAME RECEIVED 
         1-GET NEW INSTANCE OF IMAGE 
         2-SAVE PREVIOUS IN ARRAY
       */



     if (![oldgroup isEqualToString:currentgroup]) 
         {

             rendered_image = UIGraphicsGetImageFromCurrentImageContext();

             [self SaveImagesOfAnimation:[self compressImageDownToPhoneScreenSize:rendered_image]];

             [appdelegate.arranimations addObject:[sub_view.anim objectAtIndex:i]];

             UIGraphicsEndImageContext();
             UIGraphicsBeginImageContextWithOptions(sub_view.bounds.size, NO, 0.0);

        }

        id element = [sub_view.data objectAtIndex:i];     

        color = [sub_view.fillColor objectAtIndex:i];

        [color setFill];
        [element fill];

        [[UIColor blackColor] setStroke];
        [element stroke];

    }

    rendered_image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    [self SaveImagesOfAnimation:[self compressImageDownToPhoneScreenSize:rendered_image]];

}
  • 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-28T05:08:30+00:00Added an answer on May 28, 2026 at 5:08 am

    Increasing memory use without a leak implies that you’re storing data that you never release, and you’re still holding a reference to it.

    This usually means that one of the data structures that will grow automatically when you put more data in it, like NSMutableArray, is to blame. They will happily hold all the data you add to them and the memory profiler won’t find any leaks since items put in the NSMutableArray are – by definition – never released and not detected as leaks since there’s a reference to them from the array.

    Edit: For the general way to solve this if you have no obvious places to look, see the comment from @Costique at the top;

    Instruments can also show the kind of objects you’ve allocated and
    the exact stack traces, so you should be able to quickly figure it
    out.

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

Sidebar

Related Questions

After upgrading to iPhone OS 4.0 the application started to crash after switching between
My iPhone application crashes due to low memory. I can see that a crashlog
I get a crash whenever launching an iPhone application that uses libxml2 in Instruments
Good morning, I have an application that run well on iPhone but crash to
I have an iphone application in which in a button click i am showing
I have an iphone application in which in a button click i am showing
I have crash logs from an iPhone Application in the App Store (retrieved via
I've developed an iPhone application for an iOS Deployment Target 3.2. But my client
How do I trace the crash ? Process: iAddressGrabber [253] Path: /Users/egrabber/Library/Application Support/iPhone Simulator/User/Applications/DB3B2896-258C-4EC2-A490-802B1190A675/iAddressGrabber.app/iAddressGrabber
I am working on an iPhone application which is crashing after the routine tied

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.