Hi
I have tested with a binary archive and the problem does not occur. Only text archives seem to trigger it (I have not yet tested XML archives).
I have replaced all "strange" (non-letters) characters and the problem still happens. So the string contains only letters, I even removed the spaces. However do not forget that I left the line breaks in it (if I remove the line breaks, the problem does not appear).
To recapitulate: the problem appears when *all* of the following conditions are met:
* using a text archive
* using a std::string with line breaks
* with a length >=512
And even like that, I am not able to reproduce this bug in a small program, although in my program it is triggered all the time.
Now, Robert, if you could look into that, I'd appreciate it...
Jean-Noël
_____
De : boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] De la part de Robert Ramey
Envoyé : mercredi 1 février 2006 18:13
À : boost-users@lists.boost.org
Objet : Re: [Boost-users] [Serialization]: bug while serializing astd:string
This sounds like a bug to me. To help me out - check the following:
try different types of archives xml, binary, etc. xml archives have a pending issue if a string contains a character (e.g. '\0') which is not representable in an xml string. Other archive classes don't have this problem.
Check to see if its related to a particular character.
be sure its really question of size.
Robert Ramey
"RIVASSEAU Jean Noel"