Re: Need Help about MSXML , LoadXML
Sachin wrote:
will CoFreeUnusedLibraries() work ?
Why don't you try it and find out.
-cd
"Carl Daniel [VC++ MVP]" wrote:
Sachin wrote:
can we explicitly free it ?
Only by forcing the MSXML DLL to be unloaded from your process. Not
even releasing all interface refereces will force a GC, if I recall
correctly.
-cd
"Carl Daniel [VC++ MVP]" wrote:
Sachin wrote:
i am using MSXML to load a string as XML DOM object
so i use LoadXML method of IXMLDOMDocument
in my program i have to LoadXML several times in loop ,
i would like to if i repeat LoadXML call for Same interface
object would the earlier memory be freed ? On repeated call to
LoadXML the DOM is updated with new string content but will be
earlier memory be freed automatically ?
Yes, it will. MSXML uses an internal garbage collector so the
memory usage may grow but it will eventually be reclaimed.
-cd