Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.InvalidOperationException #152

Closed
Charltsing opened this issue Apr 23, 2024 · 1 comment
Closed

System.InvalidOperationException #152

Charltsing opened this issue Apr 23, 2024 · 1 comment

Comments

@Charltsing
Copy link

Charltsing commented Apr 23, 2024

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.<Image_DragEnter>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 added a commit that referenced this issue Apr 23, 2024
@Ruben2776
Copy link
Owner

Thanks for your bug report.

This has been added in the 2.2.6 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants