Crashes with net6-windows and WinFormsComInterop >= 0.4 #55
Open
Description
Application works perfectly with WinFormsComInterop 0.3.2
, using net6.0-windows as the target and the HIC.System.Windows.Forms.DataVisualization package, which is a small fork from dotnet.
These are from a debug build, no trimming or AOT.
0.4.2
: Opens, but hard crash after closing the file picker dialog. The exception code and offset for ntdll are the same every time.
The program has exited with code 3221226356 (0xc0000374).
---
Faulting application name: myprogram.exe, version: 1.2.0.0, time stamp: 0x6387d353
Faulting module name: ntdll.dll, version: 10.0.19041.2130, time stamp: 0xb5ced1c6
Exception code: 0xc0000374
Fault offset: 0x00000000000ff6a9
Faulting process id: 0x86c
Faulting application start time: 0x01d92ae651cffe54
Faulting application path: myprogram.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 7c249671-d100-4788-9c25-c0f824c6c7fc
Faulting package full name:
Faulting package-relative application ID:
0.4.1
, 0.4.0
: Missing library when trying to open the system file picker dialog
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.WebView2.Core, Version=1.0.1370.28, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.Web.WebView2.Core, Version=1.0.1370.28, Culture=neutral, PublicKeyToken=null'
at MarshalSupport.GetIUnknownForObject(Object value)
at WinFormsComInterop.IFileOpenDialogWrapper.primitives::Interop.Shell32.IFileDialog.Advise(IFileDialogEvents pfde, UInt32& pdwCookie)
at System.Windows.Forms.FileDialog.TryRunDialogVista(IntPtr hWndOwner, Boolean& returnValue)
at System.Windows.Forms.FileDialog.RunDialog(IntPtr hWndOwner)
at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
at System.Windows.Forms.CommonDialog.ShowDialog()
Metadata
Assignees
Labels
No labels