[xml] Bug or User Error



Does anyone have a suggestion as to why I am getting an unhandled exception on a doc=xmlParseFile(filename).
 
It is around the 6th time it runs in a program (Same every time), so I suspect it is running out of stack space..  After every run thru the parser I am sure to run:
 

xmlFreeDoc(doc);

xmlCleanupParser();

 
So, I am confused as to how I am leaving open memory out there.  My stack is:
 
Program
xmlSAXParseFile
xmlInitParser
xmlNewCharEncodingHandler
xmlStrndup
malloc
 
The malloc is the offending problem..
 
Any suggestions?
 
Ron Ohmer 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]