NSInvocation - MAJOR BUG? help!!
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