• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd EXEC_BAD_ACCESS after executing URLRequest


  • Subject: Re: Odd EXEC_BAD_ACCESS after executing URLRequest
  • From: "Jason Foreman" <email@hidden>
  • Date: Tue, 6 Jan 2009 08:47:15 -0600

Hi Marc,

On Tue, Jan 6, 2009 at 2:42 AM, marc hoffman <email@hidden> wrote:
>
> any other ideas?
>

I did notice one thing from your original code:


> NSURLConnection *conn = [[NSURLConnection connectionWithRequest:request delegate:self] retain];
>       @try
>       {
>           [conn start];

The way you've allocated the connection, it should start
automatically.  You shouldn't need to call -start manually.  This
*might* be causing some issues.  The documentation doesn't say not to
call it on a connection that is already started, but there might be a
bug.  Try removing this call to see if it helps at all.

Otherwise, it sounds like you've maybe got a memory management issue.
Double check all your retains and releases.  You may want to try
releasing the connection in -connectionDidFinishLoading: rather than
where you're releasing it now, though I've never needed to do that
before.

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

  • Follow-Ups:
    • Re: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED]
      • From: marc hoffman <email@hidden>
References: 
 >Re: Odd EXEC_BAD_ACCESS after executing URLRequest (From: marc hoffman <email@hidden>)

  • Prev by Date: Re: Printing PDF Documentation
  • Next by Date: NSUIHeartBeat gets stuck
  • Previous by thread: Re: Odd EXEC_BAD_ACCESS after executing URLRequest
  • Next by thread: Re: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED]
  • Index(es):
    • Date
    • Thread