• 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: NSXMLParser frees itself on error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSXMLParser frees itself on error?


  • Subject: Re: NSXMLParser frees itself on error?
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Fri, 1 May 2009 02:04:21 -0500

On Fri, May 1, 2009 at 1:59 AM, Mike Manzano
<email@hidden> wrote:
> Note that the parser is aborted and released in here. This seems to work
> just fine, multiple times, with no problems. However, if I give it a URL to
> non-XML data (should be a 404 page somewhere), it calls
> parser:parseErrorOccurred: as expected. This method also calls
> -cleanupShowParsing. However, when it is called from here, the program
> eventually terminates with:

If I'm understanding this properly, the problem is that you're
releasing the parser from a delegate method. You can't do that because
then the delegate method will return to the (now) invalid context that
used to be the parser.
_______________________________________________

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: 
 >NSXMLParser frees itself on error? (From: Mike Manzano <email@hidden>)

  • Prev by Date: NSXMLParser frees itself on error?
  • Next by Date: Re: Writable dir for non-admin user outside user's dir
  • Previous by thread: NSXMLParser frees itself on error?
  • Next by thread: Re: NSXMLParser frees itself on error?
  • Index(es):
    • Date
    • Thread