Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
- Subject: Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
- From: Dave Carrigan <email@hidden>
- Date: Thu, 10 Jan 2008 10:01:36 -0800
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@hidden
Seattle, WA, USA
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden