Closed wzswzd closed 2 years ago
This appears to be related to #66 in that a statement appears to be required between the end of a code block and the end of the method.
After further discovery, this is similar to #66 but is actually caused by something different.
I've created a branch on my fork https://github.com/psaxton/MethodBoundaryAspect.Fody/tree/issue97/invalid-program-exception and pushed commit 91482ee with tests proving the try-catch defects.
This will be fixed with PR #100
@psaxton Thank you very much for your contribution !
please checkout nuget packeage 2.0.147-pre if issues are solved
2.0.147-pre is good for me. no InvalidProgramException any more. Thanks! @psaxton @Ralf1108
async & InvalidProgramException i find out MethodBoundaryAspect will throw a InvalidProgramException : Common Language Runtime detected an invalid program. only like this :
and add this code can avoid crush :