• 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: How to noify the framework when application closes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to noify the framework when application closes


  • Subject: Re: How to noify the framework when application closes
  • From: Eric Albert <email@hidden>
  • Date: Mon, 16 Jan 2006 01:09:50 -0800

On Jan 16, 2006, at 1:00 AM, rohit dhamija wrote:

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 ?

This is a question you'd probably be better off asking on the darwin-dev or darwin-drivers lists. This list is about using Xcode itself.


I think the answer to this is something like handing a Mach port send right to your kext and then listening for Mach port death notifications, but I'm very fuzzy on the details. The folks on those other lists probably know the answer.

-Eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to noify the framework when application closes (From: rohit dhamija <email@hidden>)

  • Prev by Date: How to noify the framework when application closes
  • Next by Date: Re: [FAQ] Xcode 2.2 Project Doesn't Compile C++ as C++ [was: How does Xcode decide whether to use g++ for linking or gcc]
  • Previous by thread: How to noify the framework when application closes
  • Next by thread: Re: How to noify the framework when application closes
  • Index(es):
    • Date
    • Thread