Memory leak?
-
Hi, i'm trying to load an xml document from C++ with: MSXML::IXMLDOMDocumentPtr pXMLDocument (__uuidof (MSXML:OMDocument)); // main document parsed hr = pXMLDocument->loadXML (BSTRTemp); /* trying parse string, if success, we have doc object*/ this method uses offensive memory. i have xml files that are about 100MB size. i feel the function does not clear the memory. anyone an idea? if i load 3 times the same file, my memory is full. :confused: suggestion? is there a free method or something? thank you, lutz
-
Hi, i'm trying to load an xml document from C++ with: MSXML::IXMLDOMDocumentPtr pXMLDocument (__uuidof (MSXML:OMDocument)); // main document parsed hr = pXMLDocument->loadXML (BSTRTemp); /* trying parse string, if success, we have doc object*/ this method uses offensive memory. i have xml files that are about 100MB size. i feel the function does not clear the memory. anyone an idea? if i load 3 times the same file, my memory is full. :confused: suggestion? is there a free method or something? thank you, lutz
loading a 100mb xml file into the DOM model is going to hurt - you can expect it to take up 10 times the size on disk when its in memory.... so you could use the MSXML 3.0 Sax implementation instead... http://www.xml.com/pub/a/2002/03/06/efficient.html?page=last&x-order=date[^]
"When the only tool you have is a hammer, a sore thumb you will have."
-
loading a 100mb xml file into the DOM model is going to hurt - you can expect it to take up 10 times the size on disk when its in memory.... so you could use the MSXML 3.0 Sax implementation instead... http://www.xml.com/pub/a/2002/03/06/efficient.html?page=last&x-order=date[^]
"When the only tool you have is a hammer, a sore thumb you will have."