• 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
clear all problem.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: clear all problem.
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: Multiple applications, one NSUserDefaults object?
  • Next by Date: Re: clear all problem.
  • Previous by thread: Re: Multiple applications, one NSUserDefaults object?
  • Next by thread: Re: clear all problem.
  • Index(es):
    • Date
    • Thread