AsyncSocket Problems

Discussion in 'Mac Programming' started by CaptainZap, May 5, 2008.

  1. CaptainZap macrumors regular

    Joined:
    Jan 17, 2007
    #1
    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?
     
  2. Sayer macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #2
    Ask the author of the code since that is where the exception is being thrown.
     
  3. CaptainZap thread starter macrumors regular

    Joined:
    Jan 17, 2007
    #3
    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...
     
  4. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #4
    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
     

Share This Page