Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not read out multiple objectes from one file one by one #261

Open
NotOneRing opened this issue Aug 30, 2022 · 1 comment
Open

Could not read out multiple objectes from one file one by one #261

NotOneRing opened this issue Aug 30, 2022 · 1 comment

Comments

@NotOneRing
Copy link

Dear authors,

Sorry for the inconvenience I might cause.

I'm trying to serialize multiple objects into one file and read them out into multiple objects in C++. Although I could write them one by one, the file could not be read out one by one into multiple objects. Instead, the file is read out into one object, and all the following objects would be empty.

Is there anything I missed? Could you please help me out?

Best regards,
David

@robertramey
Copy link
Member

There are numerous examples/test of writing out/reading back multiple objects (and multiple object types) into a archive. I would suggest making a very small test program to illustrate the issue. if this fails and it seems it shouldn't. send the example to me. If it passes, just keeping making it more elaborate until it fails.

I'm guessing that this is a misunderstanding on how to use the library. If you've already resolved it, let me know so I can close this issue. If you're still stuck, try the above and get back to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants