• 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
Trying to intentionally create a memory leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to intentionally create a memory leak


  • Subject: Trying to intentionally create a memory leak
  • From: Jake <email@hidden>
  • Date: Fri, 07 Mar 2008 14:45:50 -0800

I am trying to create a simple Cocoa app that has an intentional memory leak so that I can play with the development tools Instruments, MallocDebug and leaks to learn how to detect memory leaks.  I have a Cocoa console application that has code that I was sure would leak - [NSNumber alloc] with no corresponding release.   But when I run those tools I detect no leak.

I would appreciate suggestions on code or examples on how to purposely create a memory leak and on how to properly use these tools to detect them.  I have read the documentation and believe I am following instructions but I must have missed something.
_______________________________________________

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: Trying to intentionally create a memory leak
      • From: Jens Alfke <email@hidden>
    • Re: Trying to intentionally create a memory leak
      • From: "Sherm Pendley" <email@hidden>
  • Prev by Date: Re: How to set a custom glyph generator?
  • Next by Date: Re: Trying to intentionally create a memory leak
  • Previous by thread: NSImageViewing & No Bindings available ...
  • Next by thread: Re: Trying to intentionally create a memory leak
  • Index(es):
    • Date
    • Thread