• 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
NSInvocation - MAJOR BUG? help!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSInvocation - MAJOR BUG? help!!


  • Subject: NSInvocation - MAJOR BUG? help!!
  • From: Steve Gehrman <email@hidden>
  • Date: Thu, 2 Aug 2001 05:43:49 -0700

NSInvocation seems to have a major bug. I stayed up all night trying to figure out who was calling retain on my object and not calling release. I tracked it down to NSInvocation invokeWithTarget.

it's very simple to reproduce. Basically NSInvocation retains the result object twice and releases only once. Now your object will never get released!

Will someone at Apple confirm this bug or tell me what I'm doing wrong! Everything works great except for the fact that my app eats up memory like mad.

I'll try to throw together a simple app that reproduces this

steve

retain
NSInvocation setReturnValue
NSInvocation invoke

retain
NSWalkData
NSParseAndRetain

release
NSInvocation invalidate
NSInvocation dealloc


  • Follow-Ups:
    • NSInvocation leak
      • From: Chris Kane <email@hidden>
  • Prev by Date: Re: Need Help with Help (Help Viewer now dies..)
  • Next by Date: NSFileHandle notifications revisited
  • Previous by thread: Looking for someone to take over a GPL project
  • Next by thread: NSInvocation leak
  • Index(es):
    • Date
    • Thread