Skip navigation.
 
mlRe: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
FROM : Dave Carrigan
DATE : Thu Jan 10 19:01:36 2008

On Jan 10, 2008, at 9:33 AM, I. Savant wrote:

>> Yes, that seems reasonable, but the more I think about it, the more I
>> think it must be a bug in the library.  Based on the stack trace, it
>> seems like it's a problem with the NSInputStream object, but I even
>> tried doing

>
>  That's entirely possible, but not particularly likely as this is a
> pretty well-used part of the API. Such a simple use case surely has
> been done many times before ... ;-)


I'm thinking that this use case is slightly different since it's based 
solely on Foundation in a command-line tool without any AppKit, Cocoa, 
etc. So it's quite possible that some other commonly-used framework is 
adding something that hides the bug.

>  At this point, it's probably best to isolate this problem in a test
> project (a pain, I know, but a necessary one) and see if you can
> reproduce. Post the project on one of the many file sharing sites and
> send the link to the list.


I've already done that. In my first post, the entirety of my project 
was a single file, httptest.m, which was listed in the code at the 
bottom of the post. Anyway, I've now put the rest of the project up at

  http://www.rudedog.org/tmp/httptest.tar.gz

if anybody wants to compile and run it.

--
Dave Carrigan
<email_removed>
Seattle, WA, USA