AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
StackTrace:
在 Microsoft.WindowsAPICodePack.Dialogs.IFileDialog.Show(IntPtr parent)
在 Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog.ShowDialog()
在 Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog.ShowDialog(IntPtr ownerWindowHandle)
在 DynamicClass.<>c__DisplayClass4e.<OnAddFileClick>b__4c(Object s, RoutedEventArgs a)
在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
在 System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)