You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NativeAOT does not seem to keep the Finalize method.
Repro: Run the below code under AOT Current Behavior: The program throws
Instantiated object
Finalize
Invoking Finalize
Unhandled Exception: EETypeRva:0x00347398(System.Reflection.MissingRuntimeArtifactException): This object cannot be invoked because no code was generated for it: 'MyApp.ExampleClass.Finalize()'.
at System.Reflection.Runtime.MethodInfos.RuntimeNamedMethodInfo`1.GetUncachedMethodInvoker(RuntimeTypeInfo[], MemberInfo) + 0x113
at System.Reflection.Runtime.MethodInfos.RuntimeMethodInfo.get_MethodInvoker() + 0xa1
at System.Reflection.Runtime.MethodInfos.RuntimeMethodInfo.Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) + 0x34
at MyApp.Program.M1() + 0x81
at test1!<BaseAddress>+0x1f7570
NativeAOT does not seem to keep the Finalize method.
Repro: Run the below code under AOT
Current Behavior: The program throws
Expected: The code to run without problems
The text was updated successfully, but these errors were encountered: