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

Fail to serialize: Method marked runtime has non-zero RVA #121

Closed
dmiller opened this issue May 22, 2020 · 0 comments · Fixed by #157
Closed

Fail to serialize: Method marked runtime has non-zero RVA #121

dmiller opened this issue May 22, 2020 · 0 comments · Fixed by #157
Assignees
Labels
bug Something isn't working

Comments

@dmiller
Copy link

dmiller commented May 22, 2020

Attempting to serialize a class with a constructor that has the implementation attributes MethodImplAttributes.Runtime | MethodImplAttributes.Managed results in the method in the assembly having a non-zero RVA. PEVerify indicates this error in the written assembly. An attempt to load the assembly and access the type throws an Exception with message "Runtime-implemented method with-zero RVA."

Real example: the constructor on a subclass of MulticastDelegate. Of possible interest: the Invoke method also is "runtime managed" but PEVerify does not flag it.

@OlegRa OlegRa self-assigned this May 5, 2022
@OlegRa OlegRa added the bug Something isn't working label May 5, 2022
OlegRa added a commit to OlegRa/ILPack that referenced this issue May 8, 2022
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

Successfully merging a pull request may close this issue.

2 participants