• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Memory Auto-Increasing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Memory Auto-Increasing


  • Subject: Memory Auto-Increasing
  • From: Lorenzo Puleo <email@hidden>
  • Date: Sat, 01 Jun 2002 18:56:52 +0200

Hi,
My application, while a recursive routine is running, increases its
"Resident Memory Size" and its "Virtual Memory Size". I saw this using
ProcessViewer utitlity. Sincerely I don't know what is causing that. I paste
here the code. May someone please help me solving this trouble? Thank you.
I run with MacOS X 10.1.2 and I compiled using ProjectBuilder 1.1.1.

- (BOOL)CopyItems:(NSArray*)theArray
{
int i, totItems, copyMode;
NSDictionary *taskDict;
NSString *source, *dest;
NSArray *subItems;
BOOL ok = YES;

totItems = [theArray count];
for(i = 0; i < totItems; i++){
taskDict = [theArray objectAtIndex:i];
if(!taskDict) continue;

copyMode = [[taskDict objectForKey:@"copyMode"]intValue];
subItems = [taskDict objectForKey:@"subItems"];
if(copyMode <= skipItem){
if(subItems == nil) continue;
else if(copyMode != -deleteA || copyMode != -deleteB) continue;
}

source = [taskDict objectForKey:@"source"];
dest = [taskDict objectForKey:@"dest"];
if(copyMode != nothing){
gGlobalItemsToDo--;
}


if(subItems != nil){
ok = [self CopyItems:subItems]; //recursive call
subItems = nil;
}
taskDict = nil; // do I need these?
source = nil;
dest = nil;
}
return ok;
}



ciao
renzo
--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Memory Auto-Increasing
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Open Source Development (was Re: Developers Needed)
  • Next by Date: Protecting Open Source
  • Previous by thread: Re: Open Source Development (was Re: Developers Needed)
  • Next by thread: Re: Memory Auto-Increasing
  • Index(es):
    • Date
    • Thread