[Expat-discuss] Stopping the parse -- anybody home?

Michael Roberts michael@vivtek.com
Wed, 18 Apr 2001 12:01:55 -0500


It did indeed make it to the list and I was kind of hoping somebody would
answer it.

You might just keep a flag attached to the parse, and skip out of all
handlers when it gets set.  That's the approach I'd try first.

Michael


bronson@rinspin.com wrote:

> I'm in a callback, and I've just run out of memory.  I'd like to stop
> parsing.  Is there any way to do this?  Right now I just longjmp my
> way all the way out, but that's almost guaranteed to cause memory
> leaks and confuse Expat's internals.
>
> Is there any better way of stopping parsing?  Thanks,
>
> I asked this same question last week.  Since I got no replies, I assume
> the answer is, "no"?  Can someone reassure me that this even made it to
> the list?  Thanks,
>
>         - Scott
>
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/expat-discuss