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

2010-04-08 Thread William Squires
Can you put a watchpoint on the expression pipe == nil? Maybe that would show you where it's going kablooey! On Apr 6, 2010, at 2:08 PM, Kazior Fukacz wrote: Thanks for your answers! By the way, are you using garbage collection? If not, then you're leaking several objects (those pointed

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

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

2010-04-06 Thread Adam R. Maxwell
On Apr 6, 2010, at 12:08 PM, Kazior Fukacz wrote: 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)

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

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

2010-04-05 Thread Ken Thomases
On Apr 5, 2010, at 4:05 PM, Kazior Fukacz wrote: 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 setObject:forKey:]: attempt to insert nil value' that raised

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

2010-04-05 Thread Adam R. Maxwell
On Apr 5, 2010, at 3:02 PM, Ken Thomases wrote: On Apr 5, 2010, at 4:05 PM, Kazior Fukacz wrote: 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