Hi, I'm having some problems with memory failures when using TinyXML and I'm not sure how to handle the pointers destruction.
That's a simplification of my program structure : XML_Write() { TiXmlDocument xdoc(); TiXmlElement *pMainElem= new TiXmlElement("Main"); pMainElem->SetAttibute(...); ... xdoc.LinkEndChild(pMainElem); XML_WriteA(pMainElem); ... xdoc.SaveFile(); } XML_WriteA(TiXmlElement *pXmlParent) { TiXmlElement *pElemA = new TiXmlElement("Elem A"); pElemA->SetAttibute(...); ... XML_WriteB(pElemA); pXmlParent->LinkEndChild(pElemA); } XML_WriteB has the same structure than XML_WriteB, and so on... My main question if it's needed to delete all the TiXmlElement's and TiXmlText's objects that I've created and if so in what order. Thanks in advance. -- Regards, *Natxo Mateos* [EMAIL PROTECTED] *Asuni CAD* - _www.asuni.es <http://www.asuni.es>_ - 93 319 6868 - 91 541 6439 *Especialistas en el desarrollo de aplicaciones a medida sobre AutoCAD* ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users