Re: NSXMLParser frees itself on error?
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