• 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
release not done right away
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

release not done right away


  • Subject: release not done right away
  • From: Nicolas Berloquin <email@hidden>
  • Date: Wed, 21 Apr 2004 12:00:42 +0200

Hello (so many questions ;-))

I'm having (as usual) a very weird problem.
I have some objects that are allocated like:

[[NBPeer alloc] init];
I never call autorelease on them, only release when I'm done with them.
I setup an NSLog inside their dealloc, and I noticed that when my app is in
the background and I switch to it, I get a batch of dealloc logs showing up.

I would understand it for autorelease and the event loop being passed through
at that time, but I thought that release happened right away.

Any idea what could cause this ???

PS this is a problem because this object's dealloc is not completely instanteneous,
and switching to my app then takes some "perceptible" time, when otherwise those
objets should get deallocated every so often...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: release not done right away
      • From: j o a r <email@hidden>
  • Prev by Date: delayed read-only bindings (suggestions/hints) ?
  • Next by Date: Re: release not done right away
  • Previous by thread: Re: delayed read-only bindings (suggestions/hints) ?
  • Next by thread: Re: release not done right away
  • Index(es):
    • Date
    • Thread