> Note that there's no crash under MacOS (Intel Mac OS X.4.10). gcc will not crash. The assertion is from MSVC 8's "debug iterator support" feature. Basically, when a container is changed, all its iterators will be invalidated. In this case, I suspect that the opening of the child document, and the added sections and float type, invalidated TocIterators so they can not be searched in TocModels. Maybe Toc, TocModel etc should be completely regenerated after a child document is read.
Bo