Crash in DeactivateTaskbarFix
See original GitHub issueI have daily users getting crash in the following method (I am not using directly ControlzEx but Mahapps)
- ControlzEx : 3.0.2.4
- Mahapps : 1.6.5.1
- VS 2017
- Framework 4.6.2
- Windows 6.3.17134.0 (for this one but happens on multiple version)
Anything I can do to at least trap it and avoid a crash?
System.ComponentModel.Win32Exception: El identificador de la ventana no es válido
en ControlzEx.Behaviors.WindowChromeBehavior.DeactivateTaskbarFix(IntPtr trayWndHandle)
en ControlzEx.Behaviors.WindowChromeBehavior.HandleMaximize()
en ControlzEx.Behaviors.WindowChromeBehavior.AssociatedObject_StateChanged(Object sender, EventArgs e)
en System.EventHandler.Invoke(Object sender, EventArgs e)
en System.Windows.Window.OnStateChanged(EventArgs e)
en System.Windows.Window.WmSizeChanged(IntPtr wParam)
en System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Driver dies in wrong-way crash on I-540 in Raleigh - ABC11
Police confirm Roberto Erasmo Bartolon-Mendez was the driver who died in an early morning wrong-way crash on I-540 in Raleigh.
Read more >2 people killed when SUV slams into forklift at high speed ...
Houston Police Department's Vehicle Crimes Division was called to Bellfort Avenue near Highway 288 for a crash that killed two people.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I get this as well but it seems like the
WindowChromeBehavior
class has been refactored because theDeactivateTaskbarFix
is no longer there. According to @punker76 there will be a new release of ControlzEx as soon as the next version of MahApps is ready.You might want to make a branch and try to upgrade MahApps to latest alpha 2.0.0 and see if that works. You will get the new ControlzEx release then. Not sure how stable MahApps 2.0.0 alpha is. Maybe ask @punker76 if 2.0.0 is near release or unstable.
https://www.nuget.org/packages/MahApps.Metro/2.0.0-alpha0455