NET6 virtualized function with out parameter problem
Posted: Mon Aug 07, 2023 3:59 pm
Hello,
I came across a problem with virrtualization when the function has an out parameter
[Obfuscation(Feature = "virtualization", Exclude = false)]
private static byte decdata_encTXmsg(uint addr, bool isdataencrypted, bool skipblank, byte blankvalue, out bool doskip)
if the function is virtualized, after calling, the out parameter has the wrong value, all fine if not virtualized
Internally this parameter is changed/evaluated correctly, just is throw out with wrong value.
Is it known problem with a workaround, or i'm doing something not 100% correct in my code?
Thanks in advance
In attach an example project
I came across a problem with virrtualization when the function has an out parameter
[Obfuscation(Feature = "virtualization", Exclude = false)]
private static byte decdata_encTXmsg(uint addr, bool isdataencrypted, bool skipblank, byte blankvalue, out bool doskip)
if the function is virtualized, after calling, the out parameter has the wrong value, all fine if not virtualized
Internally this parameter is changed/evaluated correctly, just is throw out with wrong value.
Is it known problem with a workaround, or i'm doing something not 100% correct in my code?
Thanks in advance
In attach an example project