|
-
July 15th, 2005, 04:57 AM
#1
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.
suggestion? is there a free method or something?
thank you,
lutz
-
July 18th, 2005, 01:38 AM
#2
Re: Memory leak?
Can noone help me?
-
July 20th, 2005, 11:29 PM
#3
Re: Memory leak?
If you use Visual Studio .net there is a nice XMLDocument class with much nicer syntax that avoids any pointers, COM junk, and memory leaks.
-
July 21st, 2005, 02:24 AM
#4
Re: Memory leak?
unfortunately i have to use msdev 6.0...
-
July 22nd, 2005, 01:05 AM
#5
Re: Memory leak?
Since it's a ugly COM object I think you'll need to do
pXMLDocument->Release();
each time you are done with the document.
-
July 20th, 2006, 05:02 AM
#6
Re: Memory leak?
sorry to re-energize this old chain.But i am gettign heaps load of memry leak in loadxml.Did you get teh solution to your question?
-
July 20th, 2006, 05:32 AM
#7
Re: Memory leak?
Yes, use newer version of msxml.dll.
Or, if you have a larger document, use a sax parser...
-
July 20th, 2006, 06:00 AM
#8
Re: Memory leak?
so you are using Dom Parser.that's good Just Go with This Link this will Help you
http://www.codeguru.com/forum/showth...&highlight=XML
if still any problem Please let us Know
Thanx
-
July 20th, 2006, 06:07 AM
#9
Re: Memory leak?
Why should this link help him...i see nothing of interest for his question ?!?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|