[Serialization]: bug while serializing a std:string

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Serialization]: bug while serializing a std:string

RIVASSEAU Jean Noel

Hello

 

It seems I have come against a bug in the BSL. I am running on Win 2000 Pro, MinGW (gcc 3.4.2), Boost 1.33.1.

 

If I serialize a standard string with 512 or more characters, the save goes ok but a stream error exception occurs while trying to reload it later from archive. Any string with size < 512 is ok.

 

Also this bug is really strange. It does not happen if the string has no line breaks in it (even if it is more than 512 chars). It also happens on my program, but I was unable to reproduce it with a small test program, even using the same string.

 

Could it be a bug in another part of my rather large  program? Or is it really a bug in the BSL?

 

Jean-Noël


_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: [Serialization]: bug while serializing a std:string

Robert Ramey
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" <[hidden email]> wrote in message <A href="news:87F60F7FA02FF749AFB02BD9FCAA6B04C1D8FA@naserv31.nanterre.oberthurcs.com">news:87F60F7FA02FF749AFB02BD9FCAA6B04C1D8FA@......

Hello

 

It seems I have come against a bug in the BSL. I am running on Win 2000 Pro, MinGW (gcc 3.4.2), Boost 1.33.1.

 

If I serialize a standard string with 512 or more characters, the save goes ok but a stream error exception occurs while trying to reload it later from archive. Any string with size < 512 is ok.

 

Also this bug is really strange. It does not happen if the string has no line breaks in it (even if it is more than 512 chars). It also happens on my program, but I was unable to reproduce it with a small test program, even using the same string.

 

Could it be a bug in another part of my rather large  program? Or is it really a bug in the BSL?

 

Jean-Noël


_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users