May
3
comment Serialization of boost::variant
First, I would like to thank you for your help. Would you please also show me the serialization part? I was confused. How are we gonna past the archive in?
May
3
asked Serialization of boost::variant
Apr
15
awarded Tumbleweed
Apr
6
accepted Seg fault when saving data using boost::serialization
Apr
6
comment Seg fault when saving data using boost::serialization
I think I will give it another 2 hours. If I can't solve it, then I guess I have to follow your suggestion. Anyway, thank you so much for your help. I really appreciate it.
Apr
6
comment Seg fault when saving data using boost::serialization
Hi ildjarn, I need to have pin::pin_Port as I design my database so that my user can access these object independently. So you meant boost serialization can't handle circular reference? But I was able to do this like yesterday. I was adding some more classes and methods and unintendedly change the original structure. That's the reason I believe that the serialization order is the cause. I don't understand the reason though.
Apr
6
comment Seg fault when saving data using boost::serialization
I got the feeling that the order of serialization has something to do with this.
Apr
6
comment Seg fault when saving data using boost::serialization
Hi ildjarn, I just did. Thank you so much for your time.
Apr
6
revised Seg fault when saving data using boost::serialization
added 1338 characters in body
Apr
6
awarded Editor
Apr
6
revised Seg fault when saving data using boost::serialization
added 497 characters in body
Apr
6
comment Seg fault when saving data using boost::serialization
Oh OK, thank ildjarn. I'll add them into my comment. Would you please take a look at it and show me if I can serialize them circular reference? Thank you so much ildjarn
Apr
6
comment Seg fault when saving data using boost::serialization
Oops, do you know how to add code in the comment section? Thanks ildjarn,
Apr
6
comment Seg fault when saving data using boost::serialization
Thanks ildjarn, you are absolutely right. I was able to deduct the issue to a circular reference in my database. What I did for debugging was sequentially turning off each component in the serialize function for each class. At the end I was able to identify that it comes from a circular reference. Now I guess my question will be condensed to how to make boost serialization taking care of circular reference or it won't be possible at all. My code for the circular reference is below:
Apr
6
comment Seg fault when saving data using boost::serialization
Hi ildjarn, I've done what you suggested but it doesn't solve it. Do you see anything else that is wrong with the code? Thanks ildjarn
Apr
6
asked Seg fault when saving data using boost::serialization
Apr
4
accepted Couldn't load data back after serializing onto disk using boost
Apr
3
comment Couldn't load data back after serializing onto disk using boost
Thanks Aldo, I actually have the unordered_map serialize function initizalized. I didn't know that you can use it like that. Thank you very much for your suggestion.
Apr
3
comment Couldn't load data back after serializing onto disk using boost
Hi Aldo, I've tried what you suggested but it doesn't solve it. I've also tried saving and loading the reference instead of the pointer. It doesn't solve it either. So I guess I must have done something wrong systematically.
Apr
3
asked Couldn't load data back after serializing onto disk using boost
1 2 3