Re: Distributed Objects and thread cleanup
Re: Distributed Objects and thread cleanup
- Subject: Re: Distributed Objects and thread cleanup
- From: Bill Bumgarner <email@hidden>
- Date: Wed, 24 Aug 2005 10:09:43 -0700
On Aug 24, 2005, at 9:54 AM, Zameer Andani wrote:
I have a thread that allocates a C++ object on the heap, i was
under the impression that when I shutdown the parent-process (ie.
terminate the application), the thread's dealloc will be called.
I am ofcourse, not seeing this behavior.
When a process exits, all memory -- including memory allocated by
threads -- is released. You will not see free() or dealloc() calls
on the objects. This happens in the VM subsystem, well below malloc
()/free().
b.bum
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden