release not done right away
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.