• 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: Memory Leaks in CocoaEcho Sample
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory Leaks in CocoaEcho Sample


  • Subject: Re: Memory Leaks in CocoaEcho Sample
  • From: Jens Beuckenhauer <email@hidden>
  • Date: Wed, 22 Oct 2008 22:58:00 +0200



Hello,

The retains in -openStreams are balanced by the releases in - closeStreams. Similarly, the streams are retained/released in a balanced fashion within the server. So, unless the server is never shutting down, that isn't the source of your leak -- there must be an unbalanced -retain coming from somewhere.

The Leaks instrument can tell you where all -retain/-releases were invoked from. You should see an unbalanced -retain.

So I think now I got it, for example if there is a line 48 there should be another line -48, right? Then it's balanced, and it's not necessarily the last line?


There are several leaks, and I think one unbalanced part should then be getinputstream:outputstream:, and -openstreams: Simply deleting the two retain lines in the openstreams: didn't work...

Jens
_______________________________________________

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


References: 
 >Memory Leaks in CocoaEcho Sample (From: Jens Beuckenhauer <email@hidden>)
 >Re: Memory Leaks in CocoaEcho Sample (From: Marco Masser <email@hidden>)
 >Re: Memory Leaks in CocoaEcho Sample (From: Nick Zitzmann <email@hidden>)
 >Re: Memory Leaks in CocoaEcho Sample (From: Marco Masser <email@hidden>)
 >Re: Memory Leaks in CocoaEcho Sample (From: Bill Bumgarner <email@hidden>)
 >Re: Memory Leaks in CocoaEcho Sample (From: Jens Beuckenhauer <email@hidden>)
 >Re: Memory Leaks in CocoaEcho Sample (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Core data one-to-many: how to set relationship for newly added 'many' objects?
  • Next by Date: Re: another n00b question -- how to find a memory leak
  • Previous by thread: Re: Memory Leaks in CocoaEcho Sample
  • Next by thread: Re: Memory Leaks in CocoaEcho Sample
  • Index(es):
    • Date
    • Thread