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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:33:51+00:00 2026-05-31T21:33:51+00:00

In my iPad App, I am using AQGridView. This app is all about matching

  • 0

In my iPad App,

I am using AQGridView.

This app is all about matching the cards to its categories.

In that I am deleting the cells.

If I am just opening the app for a few minutes it will not crashed.

But If I am playing the app for 3 to 4 minutes and deleting many cells it is getting crashes in the method.

Some memory leaks that I could not solve…

I have one array called imageMarray

I am doing shuffling on it.

In View Did Load.

 imageMArray=[NSMutableArray initWithArray:CategoryImages];
 imageMArray=[[self shuffleOnlyArray:imageMArray] retain];

In shuffleOnlyArray Method

-(NSMutableArray*)shuffleOnlyArray:(NSMutableArray*)sourceArray
{
    NSMutableArray *destArray1 = [[[NSMutableArray alloc] initWithCapacity: [sourceArray count]] autorelease];

    srandom( time(NULL));

    while ([sourceArray count] != 0)
    {
        NSUInteger index = (NSUInteger)(random() % [sourceArray count]);
        id item = [sourceArray objectAtIndex: index];
        [destArray1 addObject: item];
        [sourceArray removeObjectAtIndex:index];
    }

    [sourceArray release];
    sourceArray=nil;
    return destArray1;
}

And In shuffle Method I am writing

imageMArray=[[self shuffleOnlyArray:imageMArray] retain];

Where should I write release.
So it does remove memory leak.

  • 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-31T21:33:52+00:00Added an answer on May 31, 2026 at 9:33 pm

    If you think the issue is with reference counting, select ‘Product > Analyze’ to get Xcode to check all of your retain and releases and other issues.

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

Sidebar

Related Questions

I am using AQGridView to build an iPad app that incorporates a flexible grid
I just added a UIDatePicker to my iPad app using IB, linked it to
I have an iPad app that receives data using UDP sockets. And it has
I saw mulitple apps using this, e.g. Facebook iPad App, Twitter iPad App .
I have made a new split view iPad app using CoreData. All I have
Hi all im working on an ipad app using cocos2d objective c and box2d.
i am using this function to create Screenshots of the my IPAD App. I
Using iOS 4.3 on an ipad app I have a custom NSOperation that uses
This crash log is from a customer using my iPad app. There are only
so i'm building a mobile safari iPad app using jquerymobile... I was using this

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.