TheProjecter / objectiveflickr

Automatically exported from code.google.com/p/objectiveflickr
Other
0 stars 0 forks source link

Crash when popover that sends request is dismissed before request is processed #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a popover (iPad) that makes a flickr request.
2. Dismiss the popover before the request can be completed
3. (in my testing, I did 1,2,1,2,1,2,1,2...)

What is the expected output? What do you see instead?
I expect nothing to happen.  However, I get a crash.
*** -[OFFlickrAPIRequest respondsToSelector:]: message sent to deallocated 
instance 0x78a5be0
XCode points to LFHTTPRequest.m and the following lines of code:
For -[LFHTTPRequest(PrivateMethods) readStreamHasBytesAvailable]
if ([_delegate 
respondsToSelector:@selector(httpRequest:writeReceivedBytes:size:expectedTotal:)
]) {

and LFHRReadStreamClientCallBack
[request readStreamHasBytesAvailable];

What version of the product are you using? On what operating system?
iOS 3.2 on the iPad

Please provide any additional information below.
I know it's an odd test case that triggered the crash, but normal people do 
crazy things.

Original issue reported on code.google.com by MikePuls...@gmail.com on 1 Oct 2010 at 3:50

GoogleCodeExporter commented 9 years ago
yes, this happened to me, too, when I quickly sent two requests. 
does any solution about this issue, thanks.

Original comment by chsh...@gmail.com on 20 Feb 2012 at 7:47

GoogleCodeExporter commented 9 years ago
Please take a look at https://github.com/lukhnos/objectiveflickr/issues/29, and 
move further discussions to github as the project has already been moved there 
since long time ago.

Original comment by lukh...@gmail.com on 23 Feb 2012 at 11:26