• 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
Re: Continious/Auto-repeat Buttons & Steppers leak 30Kb+ per second!!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Continious/Auto-repeat Buttons & Steppers leak 30Kb+ per second!!?


  • Subject: Re: Continious/Auto-repeat Buttons & Steppers leak 30Kb+ per second!!?
  • From: Gary C Martin <email@hidden>
  • Date: Wed, 22 Aug 2001 18:27:39 +0100

On Wednesday, August 22, 2001, at 04:56 pm, email@hidden wrote:

I can take a quick look if you send me the app, along with instructions on reproducing the leak.

Riley Howard

I've zipped up the application bundle (~600Kb) and placed it on on an iDisk:

http://homepage.mac.com/garycmartin/FileSharing.html

To reproduce the memory drain:

1) run top from the terminal
2) launch the Moon Dock application
3) arrange your terminal window so you can see the Moon Dock memory info
4) back in Moon Dock panel click the 'Custom Date and Time' radio button
5) click and hold any of the NSStepper controls (i.e. minute increment)
6) all the time you hold, RPRVT and RSIZE will increase by ~30Kbps

Once you release the stepper this additional memory is not returned to the system (unless you quit the application). During repeated use o NSSteppers the memory drain only appears once you've been holding a stepper for longer than the last longest hold of a stepper.

Out of interest: the same drain can be found with a number of Apple provided utilities, things like dragging a preference icon in Preferences, using the Preference Clock setting steppers, Process Viewers steppers for setting the update frequency etc. The scroll bar arrows (as a good example of a continuous/auto-repeat button) do not appear to exhibit this memory hogging, and I've tested at least one example of a known Carbon application that has correctly working steppers.

Regards,
Gary C Martin


  • Prev by Date: Re: Several sheets at the same time?
  • Next by Date: Getting the Command key modifier for a NSView
  • Previous by thread: Re: Continious/Auto-repeat Buttons & Steppers leak 30Kb+ per second!!?
  • Next by thread: fileAttributesAtPath, NSFileSize problems
  • Index(es):
    • Date
    • Thread