[xml] Re: Newbie memory allocation problem with xmlDocDumpFormatMemory
- From: Victor Ng <crankycoder gmail com>
- To: xml <xml gnome org>
- Subject: [xml] Re: Newbie memory allocation problem with xmlDocDumpFormatMemory
- Date: Wed, 27 Oct 2004 17:11:36 -0400
When am I allowed to call xmlCleanupParser()?
I'm worried about this last bit from the docs:
"...xmlCleanupParser() only when the process has finished using the
library or XML document built with it."
I'm confused - can I call xmlCleanupParser before my process is
finished with XML processing or not then? Can I still safely
manipulate my documents _after_ I've call xmlCleanupParser?
Is it safe to do the following?
doc0 = xmlNewDoc(...)
doc1 = xmlNewDoc(...)
doc2 = xmlNewDoc(...)
xmlCleanupParser()
// do stuff to doc 1
xmlFreeDoc(doc1)
xmlCleanupParser()
// do stuff to doc2
xmlCleanupParser()
xmlFreeDoc(doc2)
xmlFreeDoc(doc0)
vic
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]