Re: [xml] LibXml2 Crash in MultiThreaded Windows



On Tue, Jun 10, 2008 at 06:35:10PM +0530, Lav Mehrotra wrote:
NOTE : Within my thread I create Reader / Writer object on Stack so it
goes out of scope when the thread fun exits , calls Dtor of Reader /
Writer object , which does 

xmlFreeDoc(m_ptrXMLDoc);
xmlCleanupParser();

  If you call xmlCleanupParser from the threads on concurrent accesses you
are garanteed to crash...
Read the docs. Looks at the many time i posted about the issue !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/



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