[Serialization]Cannot serialize pointer -- newbie needs help
I cannot serialize an object through a pointer.When running the program,it
reports:
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
Below is the code :
//////////////////////////////////////////////////////////////////////////////////////////////
//
// static link library: libboost_serialization-vc71-s-1_33_1.lib
//
//////////////////////////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <fstream>
#include <list>
#include
Does the demo included with the library work?
Robert Ramey
"wei niu"
Well, then there's a problem.
Ideally you should run the whole serialization regression test suite which would isolate what part of the system is failing. Or better yet, since (if I remember correctly) you're using boost on a "new" platform (one not usually tested for boost) the best would be to run the whole boost test suite. I realise that this take a while. But it's the only way you can be sure you're on solid ground and pinpoint any failings which might be rippling through to some higher level tests in a non-obvious way.
Robert Ramey
"wei niu"
Does the demo included with the library work? No.And the code example is revised from demo.cpp.
------------------------------------------------------------------------------ _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
2007/8/25, Robert Ramey
Well, then there's a problem.
Ideally you should run the whole serialization regression test suite which would isolate what part of the system is failing. Or better yet, since (if I remember correctly) you're using boost on a "new" platform (one not usually tested for boost) the best would be to run the whole boost test suite. I realise that this take a while. But it's the only way you can be sure you're on solid ground and pinpoint any failings which might be rippling through to some higher level tests in a non-obvious way.
I haven't noticed who you are until reading the documents of serialization library.Thank you,Robert. Sorry,I even don't know how to build the whole serialization regression test suite. Cannot serialize a pointer with boost is not a big problem,I can do it myself.But I want to know how boost do it.Unfortunately,for me boost's source code is very hard.Maybe a chart of the class hierarchy is helpful.Iever read SGI STL's list's source code,I think its easier than serialization library,and it's easy to print as it's in a single file. How did you design the serialization library? If you don't mind I can send my libboost_serialization-vc71-s-1_33_1.lib to you,then you may find where the problem is.My OS is win2000 sp4.My compiler is vc7.1. You must be very busy,so I'm afraid I'm wasting your time.I'll read your codes,hope I can understand them. Sincerely, Wei Niu
participants (2)
-
Robert Ramey
-
wei niu