thanks for your reply. I means in my project, I want to use NSTask to launch an application, and send application some parameters, when use NSTask launch application that will add a new thread, right? and then send Apple event, when application received Apple event , it will quit, usually, the thread starts by NSTask will exit, because the application had quit, so I don't understand this, if use NSTask launch application more times, thread count will always increased, even if application had quit. I appreciate that any reply, thank you very much.

---
Best Regards,
                                Xianyu





On Dec 10, 2008, at 12:44 AM, Etienne Guérard wrote:

I started an AP use NSTask in my project ,when I loaded this AP, thread count will be increased ,after sending apple event to AP , and AP will exit, but thread count can't decrease. If I used this method load AP more times, thread count will increased, but there was no problem on tiger, just present leopard. Sorry for my poor english.

I assume that "AP" acually means "application".
I understand that you send some Apple event to your application like a "quit' event, right? You say that your application exit. OK. So what process the threads you're talking about belong to?
Where does NSTask come into this?

You have to be more precise to get an answer...

EG
------------------------------------------------------------
This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither DxO Labs nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. DxO Labs et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, modifie ou falsifie.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to