• 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
newbie memory management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newbie memory management


  • Subject: newbie memory management
  • From: ghe <email@hidden>
  • Date: Thu, 03 Jul 2008 13:11:08 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xcode 3.1, Leopard, Intel, garbage collector

My program acts like a jukebox sometimes, playing one cut after another.
Every time it starts a new one, the memory usage (as reported by
ActivityMonitor) goes up by the size of the cut's sound file. And after
not too long, my program ends up in swap and loses control of things.

I've tried setting the pointer to the NSSound to nil and manually
triggering the garbage collector, but that seems to have no effect at
all. The only way I can find to get rid of the playlist is to abort the
program and relaunch it.

Any suggestions what I'm doing wrong?

- --
Glenn English
email@hidden

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhtJEsACgkQ04yQfZbbTLbw4wCfYxknc1dpryVwdQow6r3olJ3I
ALcAoIw31M5Quv3u/Kvwv3gH6BL2ygI/
=T69+
-----END PGP SIGNATURE-----
_______________________________________________

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: newbie memory management
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Does this caution need fixed? (newb)
  • Next by Date: Re: Does this caution need fixed? (newb)
  • Previous by thread: NSTokenField and NSFormatter
  • Next by thread: Re: newbie memory management
  • Index(es):
    • Date
    • Thread