• 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: Instruments leaks.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instruments leaks.


  • Subject: Re: Instruments leaks.
  • From: Sandro Noel <email@hidden>
  • Date: Sat, 11 Oct 2008 23:45:14 -0400

most of the leeks are created by NSString's from functions i gathered off the net.

assignations like

var1 = [var1 message];

This created a leek because the string being replaced is never released.
or am I wrong.

On 11-Oct-08, at 11:12 PM, j o a r wrote:


On Oct 11, 2008, at 7:58 PM, Sandro Noel wrote:

I'm in the optimizing phase of my little project and I'm trying to understand instruments to get most of the leeks out of my software. but instruments throws tons of leaked blocks for objects that should be auto-released, and objects that are still in use. how do I determine what is a leek and what is not ?


Put a log statement in their dealloc methods to verify that they're actually being deallocated.

	NSLog(@"Dealloc: %@", self);

False positives from Leaks should be rare, but I'm sure that it can happen.

j o a r



_______________________________________________

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: Instruments leaks.
      • From: j o a r <email@hidden>
References: 
 >Instruments leaks. (From: Sandro Noel <email@hidden>)
 >Re: Instruments leaks. (From: j o a r <email@hidden>)

  • Prev by Date: Re: NSNull and @""
  • Next by Date: Re: Instruments leaks.
  • Previous by thread: Re: Instruments leaks.
  • Next by thread: Re: Instruments leaks.
  • Index(es):
    • Date
    • Thread