• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
      • From: j o a r <email@hidden>
    • Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
      • From: "I. Savant" <email@hidden>
References: 
 >EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream] (From: Dave Carrigan <email@hidden>)
 >Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream] (From: Dave Carrigan <email@hidden>)
 >Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream] (From: "I. Savant" <email@hidden>)
 >Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream] (From: Dave Carrigan <email@hidden>)
 >Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream] (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
  • Next by Date: CocoaHeads-NYC meeting tonight
  • Previous by thread: Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
  • Next by thread: Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
  • Index(es):
    • Date
    • Thread