HandyOrg / HandyControl

Contains some simple and commonly used WPF controls
https://handyorg.github.io/
MIT License
6.18k stars 1.04k forks source link

Growl 关闭后出现异常 #1633

Open Muhu-C opened 3 months ago

Muhu-C commented 3 months ago

Describe the bug

Growl 在关闭时,出现了 Win32Exception: 报错信息: 调用的目标发生了异常。 报错位置: mscorlib 报错代码: 在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) 在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) 在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 在 System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) 在 System.Windows.Interop.HwndMouseInputProvider.HasCustomChrome(HwndSource hwndSource, RECT& rcClient) 在 System.Windows.Interop.HwndMouseInputProvider.GetEffectiveClientRect(IntPtr hwnd) 在 System.Windows.Interop.HwndMouseInputProvider.PossiblyDeactivate(IntPtr hwndCapture, Boolean stillActiveIfOverSelf) 在 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 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) 报错数据类型: System.Collections.ListDictionaryInternal System.ComponentModel.Win32Exception (0x80004005): 0x80070578 在 Standard.HRESULT.ThrowIfFailed(String message) 在 Standard.HRESULT.ThrowLastError() 在 Standard.NativeMethods.GetWindowRect(IntPtr hwnd) 在 System.Windows.Shell.WindowChromeWorker.GetEffectiveClientArea(RECT& rcClient)

Steps to reproduce the bug

使用 Growl 小概率出现此异常

Expected behavior

No response

Screenshots

image

NuGet package version

None

IDE

Visual Studio 2022

Framework type

.Net Framework 4.8

Windows version

Windows 11 (22000)

Additional context

HandyControl 3.5.1.0