• 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: Problem with garbage collection in server application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with garbage collection in server application


  • Subject: Re: Problem with garbage collection in server application
  • From: Dave Keck <email@hidden>
  • Date: Sun, 23 Jan 2011 00:04:12 -0500

> I'm pretty sure I'm not leaking the memory with an unintended reference, as the datasets *are* collected (albeit not very quickly) after I run a set of five operations and the server returns to be waiting for user input.  I'm wondering if it could be because collection will not happen until the end of a run loop, and by bombarding the server with messages then collection is never triggered because it never senses the end of the run loop.  I gather that there may be special considerations with runloops and NSConnection.

I would use gdb's "info gc-roots 0xXXXXXXXX" command to determine what
strong references exist to the objects that are placed in your array.
Instruments may also have some related functionality.
_______________________________________________

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: Problem with garbage collection in server application
      • From: Rick Hoge <email@hidden>
References: 
 >Problem with garbage collection in server application (From: Rick Hoge <email@hidden>)

  • Prev by Date: Re: Problem with garbage collection in server application
  • Next by Date: Re: Problem with garbage collection in server application
  • Previous by thread: Re: Problem with garbage collection in server application
  • Next by thread: Re: Problem with garbage collection in server application
  • Index(es):
    • Date
    • Thread