开发者

Terminating suspended NSTask

If 开发者_如何学运维I terminate (or interrupt) a suspended NSTask, then it still shows up in activity monitor. It isn't running because the CPU is 0% but it's still taking up memory. Is there a work around?


If you have instantiated the NSTask by using Alloc/init, there should be no problem. The NSTask will eventually get caught by the garbage collector, and the memory will be cleared accordingly. When the application closes entirely the allocated space and memory will be cleared aswell, like it should.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜