clear all problem.
clear all problem.
- Subject: clear all problem.
- From: "Erfan Aleemullah" <email@hidden>
- Date: Mon, 26 Nov 2007 01:28:08 -0500
Hey all,
I have a program that is like a glorified logging utility that highlights
and filters incoming logs, and keeps track of a set amount of logs.
the problem is that my so called 'restart' command which releases all my
major data structures and then re-declares them doesnt work in the memory
sense.
for instance, if the code was using 120mb real memory (seen via top command
in terminal), then releasing and reallocating does not cause the program to
occupy any less memory. I dont expect it to occupy as much memory when its
first started, but i don't know why the memory requirements don't go down at
all.
This is causing a problem in the long term stability of my app and i'm not
sure what i can do to fix it.
any help will be appreciated.
*eg code:*
clear:(id)sender
{
[array release] //stores logs that the logger displays in its GUI
....
array = [[NSMutableArray alloc]init]; //a new array that will store
logs
.....
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden