On 2012-02-10, at 2:01 PM, Taylor Venable wrote:
Thanks to Valgrind, I found my mistake. I made a vector with size two, then put three items into it. Specifically, the root node went into index 2, which is why that field of the xml-document was the one with the bug. That silly problem fixed, things seem to be working fine. But if anybody has a spare minute and would be willing to check over my code, I would still appreciate any feedback about whether I'm doing things the right way. Especially when it comes to memory management. Thanks!
I'm glad you found the bug. I looked at your code yesterday and all the allocations seem correct (use of ___STILL objects, and appropriate reference count management). It seems I missed the "out of bound" index which was the problem.
Marc