
7 Jan
2007
7 Jan
'07
6:53 p.m.
Robert Ramey wrote:
sadrok wrote:
I notice that the XML is not completed, but this doesn't seem to be a problem.
This is usually caused by closing the output stream before the archive destructor is called. Its the archive destructor which finishes up the the xml in the archive.
Is there an explicit way to flush the archive before reaching its destructor? Presumably writing output to a stream can cause an exception to be thrown, and we would want to be able to handle such errors rather than hitting terminate(). -- James