Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CaptainZap

macrumors regular
Original poster
Jan 17, 2007
170
0
I'm creating a program using AsyncSocket and it works really well but I seem to get this exception every now and then. I have no idea what causes it but it seems to be coming from the AsyncSocket class rather than my program. Here is the exception... And it keeps repeating every second because the NSTimer keeps executing the method over and over.
Code:
2008-05-05 09:59:24.521 Server[340] *** NSTimer discarding exception '*** -[NSCFString objectForKey:]: selector not recognized [self = 0x3bf600]' that raised during firing of timer with target 3b95e0 and selector 'doPoll:'

Any ideas?
 

CaptainZap

macrumors regular
Original poster
Jan 17, 2007
170
0
Yah, I tried to email him at d.j.v.@mac.com, but I always get a message in return saying the message could not be sent... but it's the email he put on the documentation and on the CocoaDev site...
 

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
You have the source, and there are only two functions that can called in the doPoll: routine. I'd just stick some debug messages before and after those two functions then narrow it down... or set a breakpoint on doPoll and step line by line until the exception is thrown.

It looks like an NSString was passed to something that should be an NSDictionary. The uses of NSDictionary in the code I see are in the initializer for NSError, and those all seem to be using NSDictionary, occasionally with nil as a possibility.

-Lee
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.