[Trilinos-Users] Problems with Teuchos::XMLObject memory management?
Jonas Thies
jonas at math.rug.nl
Mon Mar 3 02:14:07 MST 2008
Hi all,
I'm trying to put together a fairly complicated XML structure to be used
as the 'light-weight' part of an Xdmf output format. All goes well until
the end of the run, when the XMLObject is being deleted, whereupon I get
a coredump. It seems that there is an issue with the internal
std::vector destructor.
When I put everything in one main program it works, I suspect it has to
do with the way new XMLObjects are copied into the vector. I noticed
that there is a method 'deepCopy', but no copy constructor, which might
explain the behaviour (std::vector push_back calls the copy constructor).
Am I doing something wrong? I'm surprised it works for the
XMLParameterListWriter class. Is there an example somewhere?
By the way, I'm working with Trilinos version 8.0.1
thanks for your help,
Jonas
More information about the Trilinos-Users
mailing list