Open
Description
I always get this error when using your library, regardless of the function used (open a folder, open a file...). Tests were done with the demo program. The cancel works very well.
System.Runtime.InteropServices.ExternalException
HResult=0x00000000
Message=Unexpected HRESULT: 0x0000 returned from IModalWindow.Show(...).
Source=ShellFileDialogs
StackTrace:
at ShellFileDialogs.Utility.ValidateDialogShowHResult(HResult dialogHResult) in C:\Users\Marc\Documents\ShellFileDialogs\ShellFileDialogs\Utility.cs:line 212
at ShellFileDialogs.FolderBrowserDialog.ShowDialogInner(IFileOpenDialog dialog, IntPtr parentHWnd, String title, String initialDirectory) in C:\Users\Marc\Documents\ShellFileDialogs\ShellFileDialogs\Dialogs\FolderBrowserDialog.cs:line 63
at ShellFileDialogs.FolderBrowserDialog.ShowDialog(IntPtr parentHWnd, String title, String initialDirectory) in C:\Users\Marc\Documents\ShellFileDialogs\ShellFileDialogs\Dialogs\FolderBrowserDialog.cs:line 19
at ShellFileDialogs.Demo.Program.Main(String[] args) in C:\Users\Marc\Documents\ShellFileDialogs\ShellFileDialogs.Demo\Program.cs:line 17
Doing some debugging, I saw TryGetWin32ErrorCode
always returns false. The condition if( GetFacility( hr ) == HResultFacility.Win32 )
(l.142) always returns false.
Framework target : .NET 4.8
Metadata
Metadata
Assignees
Labels
No labels