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

Serializing a specific object is writing twice the content to file in most of the tries #162

Open
sn4k3 opened this issue Nov 14, 2020 · 0 comments
Assignees

Comments

@sn4k3
Copy link

sn4k3 commented Nov 14, 2020

I'm getting a very stange behaviour where my serialize is put twice the content of the class into file. I search and try some alternatives but without success. Sometimes it wont happen but in most of cases it is.
The problematic object is a sub object inside a class, but same sub object is used on other classes that never duplicate the content.
If i try serialize only that object (without the parent class) the same still happens.

On image i have the original on LEFT and saved on RIGHT, look that LAYERDEF (Section class) is duplicated when shound't.
image

Main class: https://github.com/sn4k3/UVtools/blob/master/UVtools.Core/FileFormats/PWSFile.cs#L710
Sub object class which duplicates: https://github.com/sn4k3/UVtools/blob/a2e2f5c7f3afa9263d9ad1a9cbc0673d5d86cfe4/UVtools.Core/FileFormats/PWSFile.cs#L141
Serialize line: https://github.com/sn4k3/UVtools/blob/a2e2f5c7f3afa9263d9ad1a9cbc0673d5d86cfe4/UVtools.Core/FileFormats/PWSFile.cs#L1040

@jefffhaynes jefffhaynes self-assigned this Nov 26, 2020
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