valentinradu/WhiteRaccoon — Issue #3: NSInvalidArgumentException
Author: jgrom
Created: 2011-10-28 10:41:34+00:00
State: open

Thanks for you great ftp class.
Everything works fine, but sometimes i receive NSInvalidArgumentException error on line 484

case NSStreamEventEndEncountered: {
[self.delegate requestCompleted:self];
[self destroy]; <---- HERE
} break;

2011-10-28 13:23:44.196 Pan[14470:12203] -[NSCFString destroy]: unrecognized selector sent to instance 0x95c7480
2011-10-28 13:23:44.510 Pan[14470:12203] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString destroy]: unrecognized selector sent to instance 0x95c7480'
*** Call stack at first throw:
(
0 CoreFoundation 0x0157c5a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0185f313 objc_exception_throw + 44
2 CoreFoundation 0x0157e0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x014ed966 ___forwarding___ + 966
4 CoreFoundation 0x014ed522 _CF_forwarding_prep_0 + 50
5 Pan 0x0006258e -[WRRequestDownload stream:handleEvent:] + 1470
6 CoreFoundation 0x01557c32 _inputStreamCallbackFunc + 82
7 CoreFoundation 0x0152b953 _signalEventSync + 99
8 CoreFoundation 0x0152b8be _cfstream_shared_signalEventSync + 334
9 CoreFoundation 0x0155d8ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
10 CoreFoundation 0x014bb88b __CFRunLoopDoSources0 + 571
11 CoreFoundation 0x014bad86 __CFRunLoopRun + 470
12 CoreFoundation 0x014ba840 CFRunLoopRunSpecific + 208
13 CoreFoundation 0x014ba761 CFRunLoopRunInMode + 97
14 GraphicsServices 0x01f191c4 GSEventRunModal + 217
15 GraphicsServices 0x01f19289 GSEventRun + 115
16 UIKit 0x0041ac93 UIApplicationMain + 1160
17 Pan 0x0000256d main + 125
18 Pan 0x000024e5 start + 53
19 ??? 0x00000001 0x0 + 1
)