Re: The thread that starts by NSTask didn't clear up

2008-12-10 Thread Xianyu Ge
I appreciate that you give me you hand, Thank you very much, I have solved this questions, and I also learn knowledge that NSTask is just a wrapper around execve(), no threading involved. Thanks. 2008/12/10 Etienne Guérard <[EMAIL PROTECTED]> > OK > It seems that in leopard NSTask uses a thread t

Re: The thread that starts by NSTask didn't clear up

2008-12-10 Thread Etienne Guérard
OK It seems that in leopard NSTask uses a thread to monitor the launched process, presumably to detect process termination. This thread should disappear shortly after the corresponding NSTask instance is released. Since the launched NSTask is auto-released you need to do one of the followi

Re: The thread that starts by NSTask didn't clear up

2008-12-10 Thread Etienne Guérard
Hi, On Dec 10, 2008, at 2:26 AM, Xianyu_Ge wrote: 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? As far as I understand, you use NSTask

Re: The thread that starts by NSTask didn't clear up

2008-12-09 Thread Xianyu_Ge
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,

Re: The thread that starts by NSTask didn't clear up

2008-12-09 Thread Etienne Guérard
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, ju

The thread that starts by NSTask didn't clear up

2008-12-08 Thread Xianyu_Ge
Hey all, I was bothered by a question, I hope somebody can help me, thanks for your help. 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 me