• 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: singletons and autoreleased objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: singletons and autoreleased objects


  • Subject: RE: singletons and autoreleased objects
  • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Fri, 15 May 2009 13:40:15 -0400
  • Thread-topic: singletons and autoreleased objects

> On May 13, 2009, at 8:30 , Karan, Cem (Civ, ARL/CISD) wrote:
>
> > I have an object that I've turned into a singleton via the
> techniques
> > described at:
> >
> >
> http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CocoaFundame
> > ntals/CocoaObjects/CocoaObjects.html#/
> > /apple_ref/doc/uid/TP40002974-CH4-SW32
> >
> > This works great, but I've started debugging, and discovered that I
> > seem to be leaking memory (I'm not sure about that; I may be
> > misreading what Instruments is telling me).  It appears to
> be because
> > my singleton object (and anything it holds) looks like a leak to
> > leaks.  Is this normal?  Should I be worried?
>
> It may be normal, it may not, how could we tell?  If you post
> the code and the data that instrument is showing you, we
> might be able to give you at least an educated guess.
>
> Marcel

Actually, I made a correction a little after I posted the original
message; the error had nothing to do with my singleton object, and
everything to do with over releasing a completely separate object; it
just happened that I wrote the singleton code right after I wrote the
broken code, and I thought it was my singleton code that was broken.

You're right that I should post code though...

Thanks,
Cem Karan
_______________________________________________

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

References: 
 >singletons and autoreleased objects (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: singletons and autoreleased objects (From: Marcel Weiher <email@hidden>)

  • Prev by Date: [iPhone] NSURLConnection cache problem?
  • Next by Date: User Access Rights
  • Previous by thread: Re: singletons and autoreleased objects
  • Next by thread: Re: Special requirements for the window param of NSAlert
  • Index(es):
    • Date
    • Thread