You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by 林 子芯 <mi...@hotmail.com> on 2002/08/08 17:46:02 UTC
about freeing memory from xerces
Hi
i suppose this is a fairly common question, but i was wandering how i
could handle the memory leaks in the MFC application i wrote. In this
application i have included xalan, responsible for both xslt and DOM
manipulation (the xerces part). At present i have included the
initialisation at the very beginning of the program. here when an xml file
is loaded, i have created an XalanParsedSource and a DOM_Document of the
xml document in memory. both of which are in use throughout the program. in
one of my module, i will need to clone the DOM_document, and preform some
operations with it. and i was wondering how do i free all memory associated
with this operation that was being held by the library but without killing
off the originial document? to do so, do i have to have this operation in a
separate thread from the main thread (the one holds the originial
DOM_document) if so, how could i access the originial DOM_Document node
from the new thread?
any feedback will be a great help for me
Many thanks
Regards
Kit
p.s. sorry about the dupilcation,I do not know which is the more appropiate
list to put it into
_________________________________________________________________
使用全球最多人使用的電子郵件服務 MSN Hotmail:http://www.hotmail.com