kant2002 / WinFormsComInterop

ComWrappers required to run NativeAOT and WinForms
MIT License
217 stars 31 forks source link

winform net7 aot ,Close() application execution error #75

Open baidoufu opened 7 months ago

baidoufu commented 7 months ago

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 .std_type_info_destroy_list(type_info_node*) + 0x2d at .__scrt_uninitialize_type_info() + 0x29 at ._app_exit_callback() + 0x148 at .ModuleUninitializer.SingletonDomainUnload(Object source, EventArgs arguments) + 0xa4 at Client!+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

thepwrtank18 commented 7 months ago

For a temporary fix, https://www.dllme.com/dll/files/vcruntime140_cor3 (put at same dir as assembly)

baidoufu commented 7 months ago

Replaced the downloaded file, still the same error

tabzhang commented 5 months ago

Unknown Hard Error When Closing windows。