• 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: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED]


  • Subject: Re: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED]
  • From: "Jason Foreman" <email@hidden>
  • Date: Wed, 7 Jan 2009 10:18:44 -0600

On Wed, Jan 7, 2009 at 9:43 AM, marc hoffman <email@hidden> wrote:
>
> wow, that was indeed it. odd, i could have /sworn/ i had seen a separate
> class method in the docs with a "shouldStart" parameter, and that this one
> was supposed to not start it. teaches me to trust my memory ;P

Well, your memory isn't *that* bad  :)   There is
-initWithRequest:delegate:startImmediately:, but it starts the
connection unless you pass NO to startImmediately.  The other forms of
init for NSURLConnection (including +connectionWithRequest:delegate:)
will start immediately.


> anyways, all working now, thanks a lot!

Great!

You may want to consider filing a bug with Apple about your case.
Seems like -start should be benign on an already started connection,
but they can probably at least clear up the documentation about when
one can and/or should call -start.  The docs say "Causes the receiver
to begin loading data, if it has not already.", but it seems here it
caused the data to begin loading a second time, later crashing after
the connection was released.


Jason
_______________________________________________

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

References: 
 >Re: Odd EXEC_BAD_ACCESS after executing URLRequest (From: marc hoffman <email@hidden>)
 >Re: Odd EXEC_BAD_ACCESS after executing URLRequest (From: "Jason Foreman" <email@hidden>)
 >Re: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED] (From: marc hoffman <email@hidden>)

  • Prev by Date: Re: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED]
  • Next by Date: Re: Convert GWorldPtr into a NSImage
  • Previous by thread: Re: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED]
  • Next by thread: Binary search on sorted NSArray in Cocoa?
  • Index(es):
    • Date
    • Thread