I am using the serialization library in boost 1.33.1. I
am compiling on windows using the VC 7.1 compiler.
The problem I am having is that when I use xml_iarchive and
xml_oarchive, everything works just fine for simple cases, but if the xml gets
very deep ( same exact class hierarchy, just more data organized a little more
complexly) I am getting runtime stack overflow crashes in the spirit parser.
I figured I could solve that by simply substituting text_iarchive and
text_oarchive. Please note that I am simply substituting in these
archive types instead of using the xml archive headers, which work. There
are no other code changes anywhere.
Now I am getting the following compiler error:
\boost\mpl\eval_if.hpp(40) : fatal error C1204:
compiler limit : internal structure overflow
Any suggestions? I can try increasing the stack size
of my current application to eliminate the xml runtime stack overflow problem,
but I am uneasy doing this until I understand how to calculate the stack sizes
required, and why it is happening. Furthermore, I would prefer using the
text archives, since the data is more compact than the xml ones.
Ed Reusser
Principal Software Engineer
Actel Corporation
(408) 318-4972