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

BinarySerializationFormatter AccessViolationException in x86 projects #10

Closed
topsterde opened this issue Feb 25, 2022 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@topsterde
Copy link

The constructor of BinarySerializationFormatter crashes in x86 projects with this exception:
AccessViolationException
Fatal error. 0xC0000005
at DynamicEnumComparerInt32`1[[KGySoft.Serialization.Binary.BinarySerializationOptions, KGySoft.CoreLibraries, Version=6.0.1.0, Culture=neutral, PublicKeyToken=b45eba277439ddfe]].ToUInt64(KGySoft.Serialization.Binary.BinarySerializationOptions)

Add this property to the csproj:
<PlatformTarget>x86</PlatformTarget>

Full Example:
KGySoftX86.zip

@koszeggy koszeggy self-assigned this Feb 25, 2022
@koszeggy koszeggy added the bug Something isn't working label Feb 25, 2022
@koszeggy
Copy link
Owner

Thank you for the report

@koszeggy
Copy link
Owner

Fixed by this commit. I will arrange an extra release soon.

@topsterde
Copy link
Author

Thank you for the quick fix.

@koszeggy
Copy link
Owner

The fix has been released in v6.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants