Ruben2776 / PicView

Fast, free and customizable image viewer for Windows 10 and 11.
https://picview.org
Other
939 stars 63 forks source link

System.InvalidOperationException #152

Closed Charltsing closed 2 months ago

Charltsing commented 2 months ago

1

System.InvalidOperationException HResult=0x80131509 Message=调用线程必须为 STA,因为许多 UI 组件都需要。 Source=PresentationCore StackTrace: 在 System.Windows.Input.InputManager..ctor() 在 System.Windows.Input.InputManager.GetCurrentInputManagerImpl() 在 System.Windows.Input.KeyboardNavigation..ctor() 在 System.Windows.FrameworkElement.FrameworkServices..ctor() 在 System.Windows.FrameworkElement..ctor() 在 System.Windows.Controls.Control..ctor() 在 PicView.WPF.Views.UserControls.Misc.DragDropOverlay..ctor() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\Views\UserControls\Misc\DragDropOverlay.xaml.cs 中: 第 8 行 在 PicView.WPF.UILogic.DragAndDrop.ImageDragAndDrop.AddDragOverlay() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\UILogic\DragAndDrop\Image_DragAndDrop.cs 中: 第 234 行 在 PicView.WPF.UILogic.DragAndDrop.ImageDragAndDrop.d__1.MoveNext() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\UILogic\DragAndDrop\Image_DragAndDrop.cs 中: 第 91 行 在 PicView.WPF.Views.Windows.MainWindow.<>c.<<-ctor>b__0_14>d.MoveNext() 在 C:\Users\liucq\Desktop\PicView-dev\PicView-dev\src\PicView.WPF\Views\Windows\MainWindow.xaml.cs 中: 第 126 行

捕获

Ruben2776 commented 2 months ago

Thanks for your bug report.

This has been added in the 2.2.6 release.