HandyControls icon indicating copy to clipboard operation
HandyControls copied to clipboard

Multiple pop-up message boxes will cause an error.

Open get-luck opened this issue 7 months ago • 5 comments

Describe the bug

Image

Multiple clicks on Growl.InfoGlobal, including others, will be captured by the global exception handler. Version 3.6.

TargetInvocationException: 调用的目标发生了异常。 Stack Trace: 在 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.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 XCore.App.Main()

Win32Exception: 0x80070578 Stack Trace: 在 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

Create a button that continuously clicks Growl.InfoGlobal("GrowlInfo").

Expected behavior

Additionally, when the window is enlarged, there is a period of white flickering. On a white desktop background, this flickering is most noticeable in night mode.

Screenshots

Create a button that continuously clicks Growl.InfoGlobal("GrowlInfo").

NuGet package version

None

IDE

Visual Studio 2022

Framework type

.Net 8.0, .Net Framework 4.8

Windows version

Windows 11 (22621)

Additional context

No response

get-luck avatar Jun 04 '25 01:06 get-luck

i dont see any issues!

Image

ghost1372 avatar Jun 04 '25 08:06 ghost1372

After retrying, it occurs in .NET Framework 4.8 but not in net6 and above versions. In the demo, clicking the Framework version multiple times causes it to exit.

Image

get-luck avatar Jun 04 '25 09:06 get-luck

Image

get-luck avatar Jun 04 '25 09:06 get-luck

@get-luck i can repro this issue in HandyControlDemo by Hovering mouse on Growl, but it is working fine in a new blank project i tested with net481 and there is no crash. This issue should be reported to the main repository. https://github.com/handyorg/handycontrol

ghost1372 avatar Jun 04 '25 09:06 ghost1372

I meet the same issues on the newest source code in git,net48/net481 all have the issue,but sorry i cannot find the reason

qwfy168 avatar Jul 07 '25 08:07 qwfy168