Here I am using JSON to parse the data with ASIHTTPRequest
The same code is working fine for my lower version of iOS. (iOs7 & below)
But I am not able to run this on my iOS-8 device.
The log is getting well, but the app crashes, may be getting late reply from server. It should not crash for late reply.
Does any new modification required for iOS-8 for ASIHTTPRequest
?
Same code for lower version working well.
If I tried to check with debugger ON with each method, I found my code is crashing right here:
-(void)startSynchronous
{
#if DEBUG_REQUEST_STATUS || DEBUG_THROTTLING
ASI_DEBUG_LOG(@"[STATUS] Starting synchronous request %@",self);
#endif
[self setSynchronous:YES];
[self setRunLoopMode:ASIHTTPRequestRunLoopMode];
[self setInProgress:YES];
if (![self isCancelled] && ![self complete]) {
[self main];
while (!complete) {
[[NSRunLoop currentRunLoop] runMode:[self runLoopMode] beforeDate:[NSDate distantFuture]];
}
}
[self setInProgress:NO];
}
In while loop app crashes. Am I doing something wrong...?
Thanks in Advance.