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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:26:56+00:00 2026-05-27T02:26:56+00:00

Possible Duplicate: Program received signal: 0. Data Formatters temporarily unavailable I am taking above

  • 0

Possible Duplicate:
Program received signal: “0”. Data Formatters temporarily unavailable

I am taking above 200 OBShapedButtons on XiB and setting up the background images over there.
After that I am taking the image of that particular OBShapedButton and coloring the image and setting it back again as the background of that OBShapedButton.

-(void)onTick:(NSTimer *)timer {
    //Database
    UIImage *setColor=[[UIImage alloc] init];
    for (int i=0; i<[dataArray count]; i++)
    { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
        currentLevelMaleValue =[[[dataArray objectAtIndex:i] objectForKey:@"CurrentLevelMaleColor"] doubleValue];
        printf("Current val is %f",currentLevelMaleValue);
        for (OBShapedButton *obshapedCountryButtons in scrollBaseView.subviews) 
        {
            if (obshapedCountryButtons.tag==i+1) 
            {
                UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapButton:)];
                tap.numberOfTouchesRequired=1;
                tap.numberOfTapsRequired=1;
                [obshapedCountryButtons addGestureRecognizer:tap];
                [obshapedCountryButtons addTarget:self action:@selector(buttonTagTrap:) forControlEvents:UIControlEventTouchDown];
                //[obshapedCountryButtons addTarget:self action:@selector(tapButton:) forControlEvents:UIControlStateHighlighted];
                setColor=[obshapedCountryButtons imageForState:UIControlStateNormal];
                countryCode =[self getCountryColorCurrentLevel:currentLevelMaleValue];
                setColor =[setColor imageTintedWithColor:countryCode];
                [obshapedCountryButtons setImage:setColor forState:UIControlStateNormal];[pool release];
                //    [setColor release];
                //    [obshapedCountryButtons release];
                //    [tap release]; 
                //         
            }

            //  }
        }
    }
}

Now,I am getting this error[After the loop has been executed around 40 times]-

Program received signal: “0”. Data Formatters temporarily
unavailable, will re-try after a ‘continue’. (Unknown error loading
shared library “/Developer/usr/lib/libXcodeDebuggerSupport.dylib

Receiving this warning-

Received memory warning

Then the app is getting terminated.

Note :

No object allocations.

Please help me out with some of your ideas. How should I go ahead ?

  • 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-27T02:26:57+00:00Added an answer on May 27, 2026 at 2:26 am
    UIImage *setColor=[[UIImage alloc] init];
    

    is a memory leak as you are not release it. Actually the allocation is not necessary as you are assigning some other values to it. Similarly tap is also not released as you have commented that code.

    A suggestion for this. Try to put this block of code in NSAutoreleasePool.

    Edit:

    -(void)onTick:(NSTimer *)timer {
        //Database
        UIImage *setColor;// =[[UIImage alloc] init];
        for (int i=0; i<[dataArray count]; i++)
        { 
            NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
            currentLevelMaleValue =[[[dataArray objectAtIndex:i] objectForKey:@"CurrentLevelMaleColor"] doubleValue];
            printf("Current val is %f",currentLevelMaleValue);
            for (OBShapedButton *obshapedCountryButtons in scrollBaseView.subviews) 
            {
                NSAutoreleasePool * pool1 = [[NSAutoreleasePool alloc] init];
                if (obshapedCountryButtons.tag==i+1) 
                {
                    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapButton:)];
                    tap.numberOfTouchesRequired=1;
                    tap.numberOfTapsRequired=1;
                    [obshapedCountryButtons addGestureRecognizer:tap];
                    [obshapedCountryButtons addTarget:self action:@selector(buttonTagTrap:) forControlEvents:UIControlEventTouchDown];
                    //[obshapedCountryButtons addTarget:self action:@selector(tapButton:) forControlEvents:UIControlStateHighlighted];
                    setColor=[obshapedCountryButtons imageForState:UIControlStateNormal];
                    countryCode =[self getCountryColorCurrentLevel:currentLevelMaleValue];
                    setColor =[setColor imageTintedWithColor:countryCode];
                    [obshapedCountryButtons setImage:setColor forState:UIControlStateNormal];[pool release];
                    //    [setColor release];
                    //    [obshapedCountryButtons release];
                    [tap release]; 
    
                }
                [pool1 drain];
            }
            [pool drain];
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How can I convert my java program to an .exe file ?
Possible Duplicate: Python program to find fibonacci series. More Pythonic way. Hey, i was
Possible Duplicate: enhancing a program - complete failure im asked to write a program
Possible Duplicate: Compiling a java program into an exe Hi, I'd like to convert
Possible Duplicate: Linking 32-bit library to 64-bit program One of the libraries a program
Possible Duplicate: How can I convert my java program to an .exe file ?
Possible Duplicate: License for C# desktop application I want to make my program lock
Possible Duplicate: C++ passing variables in from one Function to the Next. The Program
Possible Duplicate: How can I convert my java program to an .exe file ?
Possible Duplicate: Get connecting IP from specified ports that using by other program. If

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.