Re: [xml] xmlFreeDoc() error

On Tue, 11 Nov 2003, Daniel Veillard wrote:

   Your report has no usuful data for us to work on, however
  xmlFreeDoc() is recursive. It will free the whole document. If you
modified incorrectly any part in the document, xmlFreeDoc() will
likely hit it.

This could also happen if you've already freed something that
xmlFreeDoc() expects to free.  The documentation of what has
to be explicitly freed is not always clear.

   Use a debugger and check where this fails, then check back in your
application where this was modified.

It could also be worth commenting out other FreeSomething() calls.
If the problem then goes away, you've narrowed it down and just
have to figure out which calls are duplicating each other.

Nick Kew

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]