NSInputStream stops running, sometimes throws EXC_BAD_ACCESS
问题 (UPDATED) this is the problem in a nutshell: in iOS I want to read a large file, do some processing on it (in this particular case encode as Base64 string() and save to a temp file on the device. I set up an NSInputStream to read from a file, then in (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode I'm doing most of the work. For some reason, sometimes I can see the NSInputStream just stops working. I know because I have a line NSLog(@"stream %@ got event %x", stream,