WinFormsComInterop
WinFormsComInterop copied to clipboard
winform net7 aot ,Close() application execution error
System.DllNotFoundException: Unable to load DLL 'vcruntime140_cor3.dll' or one of its dependencies: The specified module could not be found. at System.Runtime.InteropServices.NativeLibrary.LoadLibErrorTracker.Throw(String) + 0x79 at Internal.Runtime.CompilerHelpers.InteropHelpers.FixupModuleCell(InteropHelpers.ModuleFixupCell*) + 0xe4 at Internal.Runtime.CompilerHelpers.InteropHelpers.ResolvePInvokeSlow(InteropHelpers.MethodFixupCell*) + 0x2f at <Module>.__std_type_info_destroy_list(__type_info_node*) + 0x2d at <Module>.__scrt_uninitialize_type_info() + 0x29 at <Module>._app_exit_callback() + 0x148 at <CrtImplementationDetails>.ModuleUninitializer.SingletonDomainUnload(Object source, EventArgs arguments) + 0xa4 at Client!<BaseAddress>+0x18496f6 at System.Environment.Exit(Int32) + 0x29 at Launcher.AMain.AMain_FormClosed(Object sender, FormClosedEventArgs e) + 0x5c at System.Windows.Forms.Form.WmClose(Message&) + 0x462 at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Interop.User32.WM msg, IntPtr wparam, IntPtr lparam) + 0x70
For a temporary fix, https://www.dllme.com/dll/files/vcruntime140_cor3 (put at same dir as assembly)
Replaced the downloaded file, still the same error
Unknown Hard Error When Closing windows。