Hey Markus, 2009/6/9 [email protected] <[email protected]>: > So does it only deleti ITS children?
It deletes its children, which in turn delete their children, etc... > Or does it destroy the childrens children and so on (the whole tree > structure until the last leaf). Do I have to > - pContainer->clear() or > - "delete pContainer" or > - both? "delete pContainer" will first call clear() to delete all of its children (and other descendants). You thus only need to call "delete pContainer". If unsure about memory being freed, I would recommend the use of a tool such as valgrind. Regards, koen ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
