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

C++/CLI pinned local could be translated to fixed block #1292

Closed
CreateAndInject opened this issue Oct 6, 2018 · 1 comment
Closed

C++/CLI pinned local could be translated to fixed block #1292

CreateAndInject opened this issue Oct 6, 2018 · 1 comment
Labels
C++/CLI Problem decompiling mixed-mode assemblies Decompiler The decompiler engine itself

Comments

@CreateAndInject
Copy link
Contributor

22.zip

1.switch bug:
RxjhServer.物品类.fa(string)

2.There're ref locals even if I check C#4.0/VS2010 in RxjhServer.HUtil32 class
such as:
IntToArrat
ObjectToInt
StringToByteAry...

@siegfriedpammer siegfriedpammer added Bug Decompiler The decompiler engine itself C# labels Oct 11, 2018
@siegfriedpammer siegfriedpammer added the C++/CLI Problem decompiling mixed-mode assemblies label Dec 13, 2018
@dgrunwald dgrunwald changed the title bug report C++/CLI pinned local could be translated to fixed block Mar 27, 2019
@dgrunwald
Copy link
Member

In this case we might be able to generate something like fixed (int *ptr = array), but in the general case there may always be left over ref locals that don't match any high-level patterns.
We can't magically make ref locals magically disappear, just like we can't magically erase generics just because you might select C# 1.0.

dgrunwald added a commit that referenced this issue Aug 8, 2020
Let's distinguish between the original pinned locals and the PinnedRegion locals.
The format need declarations if any are left over after transformations; the latter don't.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C++/CLI Problem decompiling mixed-mode assemblies Decompiler The decompiler engine itself
Projects
None yet
Development

No branches or pull requests

3 participants