Re: How to noify the framework when application closes
site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com JP On 16 Jan 2006, at 01:58, rohit dhamija wrote: Hi All, Please suggest. -- Rohit Dhamija(M) 9818446545 _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Where are you allocating the memory? In the kernel? If its inside user space (which it would be if you just malloc() it in the framework, then it will be disposed of upon any termination (abnormal or otherwise). I have build an framework for accessing the usb bulk storage device using iokit.framework. Multiple applications can access the device using this framework. For each application accessing the device, the framework allocates some memory. Now, I need to free this memory when ever the application: a. Closes decently b. Abnornal termination So is there any way that I can notify the framework that the application has been closed ? Is giving notification to the framework through signals the right way ? If yes, then how ? _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/jpell.lists% 40mac.com This email sent to jpell.lists@mac.com -- "... was it a dream where you see yourself standing in sort-of Sun- God robes, on a pyramid, with a thousand naked women screaming and throwing little pickles at you? ... Why am I the only one who has that dream?" This email sent to site_archiver@lists.apple.com
participants (1)
-
John Davidorff Pell