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
Method '[Avalonia.Win32]Avalonia.Win32.Interop.UnmanagedMethods.CoCreateInstance(Guid&,native int,int32,Guid&,object&)' requires marshalling that is not yet supported by this compiler
#4541
Closed
FoggyFinder opened this issue
Aug 22, 2020
· 3 comments
Unhandled Exception: System.Exception: Method '[Avalonia.Win32]Avalonia.Win32.Interop.UnmanagedMethods.CoCreateInstance(Guid&,native int,int32,Guid&,object&)' requires marshalling that is not yet supported by this compiler.
at Avalonia.Win32.Interop.UnmanagedMethods.CoCreateInstance(Guid&, IntPtr, Int32, Guid&, Object&) + 0x34
at Avalonia.Win32.SystemDialogImpl.<>c__DisplayClass2_0.<ShowFolderDialogAsync>b__0() + 0xca
at System.Threading.Tasks.Task`1.InnerInvoke() + 0x37
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object) + 0x47
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task&, Thread) + 0x161
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xba
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x44
at AvaloniaApplicationSample.MainWindow.<SelectPathBtn_Click>d__3.MoveNext() + 0x111
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
at Avalonia.Threading.JobRunner.RunJobs(Nullable`1) + 0x45
at Avalonia.Win32.Win32Platform.WndProc(IntPtr, UInt32, IntPtr, IntPtr) + 0x79
at AvaloniaApplicationSample!<BaseAddress>+0xc926da
Works with .UseManagedSystemDialogs()
The text was updated successfully, but these errors were encountered:
OpenFileDialog
/SaveFileDialog
/OpenFolderDialog
throws exception on CoreRt buildMCVE
Exception
Works with
.UseManagedSystemDialogs()
The text was updated successfully, but these errors were encountered: