Re: Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-07 Thread Kazior Fukacz
Thanks for your answers! By the way, are you using garbage collection? If not, then you're leaking several objects (those pointed to by 'netstat', 'pipe', and 'string'). Yeah, I suspect that the pipes (and corresponding NSFileHandles) are indeed leaking, and that's the real problem.

Re: Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-07 Thread Kazior Fukacz
Hello, How is it that it starts to malfunction after such amount of time? Because the leak builds up over time until you run out of file descriptors, and -[NSPipe init] finally starts returning nil. Yeah, I figured it out like 10 minutes after I asked that question. Found this

Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-05 Thread Kazior Fukacz
Hello, I'm working on an application named IPShowX. Take a look at for more info: http://kaziorvb.pl/IPShowX/ When I run it, it keeps working perfectly fine for a few minutes, then stops refreshing the IP and prints: IPShowX[14917] *** NSTimer discarding exception '*** -[NSCFDictionary