Memory Auto-Increasing
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.