• 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: EXC_BAD_ACCESS help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXC_BAD_ACCESS help


  • Subject: Re: EXC_BAD_ACCESS help
  • From: "William Zumwalt" <email@hidden>
  • Date: Sun, 20 Jan 2008 00:20:00 -0600

I really think I understand that link, and the only reason I bring up the
retain count is because I know I'm not releasing it too early (cause I don't
release these objects for now).
What I'm afraid is happening is that it's being overwritten somehow and that
when I access the NSNumber object, I get the error. Or possibly something to
do with the threads that I don't understand, but I just don't see it.

On Jan 20, 2008 12:09 AM, I. Savant <email@hidden> wrote:

> > I believe I've got my memory management correct and that my retain
> > counts
> > are good.
> >
>   DO. NOT. RELY. ON. RETAIN. COUNT.
>
>   I say that so boldly so there is no chance of being unclear. If
> you're blindly basing "correct memory management" on retain count, you
> do not yet understand the memory management mechanism. An object
> instance's retain count is, frankly, none of your business. That's
> between the instance and the system.
>
> > Anyone have an idea?
>
>   Yes, a bright one. Read this thoroughly:
>
>
> http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html
>
>   Does the entire life cycle of your problem instance follow these
> rules? If your answer is no, there's your problem. If your answer is
> yes, I call bull****. ;-)
>
> --
> I.S.
>
>
>
>
_______________________________________________

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: EXC_BAD_ACCESS help
      • From: Bill Bumgarner <email@hidden>
References: 
 >EXC_BAD_ACCESS help (From: "William Zumwalt" <email@hidden>)
 >Re: EXC_BAD_ACCESS help (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: "Convert to Objective-c 2.0"
  • Next by Date: Re: EXC_BAD_ACCESS help
  • Previous by thread: Re: EXC_BAD_ACCESS help
  • Next by thread: Re: EXC_BAD_ACCESS help
  • Index(es):
    • Date
    • Thread