I use ARC, for the ASIHTTPRequest-Files I have the special compiler linker flag, so they don't use ARC. Now I create an ASIHTTPRequest like this:
...
@property(nonatomic,strong) ASIFormDataRequest *request;
@syntesize request
...
self.request = [[ASIFormDataRequest alloc]initWithURL:[NSURL URLWithString:API3]];
self.request.delegate=self;
[self.request startAsynchronous];
If the view closed before the request finished, I get a EXEC_BAD_ACCESS, because the view is already released. If I call a
[self.request clearDelegateAndCancel]
The request didn't stop and the App still continue to crash. I tried to call clearDelegateAndCancel on the main Thread and with performSelector afterDelay, but with the same results. When I enable the LOG output of ASIHTTPRequest, I see that the methods get called, and also the internal Function [self cancel] in ASIHTTPRequest.m is called, but the request didn't stop, I see it because of the Network Activity Indicator.
Does anyone else have this problem, or know how to solve?